multimap

描画のプライオリティを SortedDictionary を使って、

SortedDictionary<int, DrawInfo> drawInfoList;

とかやろうと思ったんですが、これだと同じプライオリティが使えないので全然ダメポ。


STL なら multimap があって、重複したキーが使えて非常に楽だったんですが、どうやら C# にはそういうのは無いみたい。
どうすりゃええんじゃぼけーとか考えてたら、

SortedDictionary<int, List<DrawInfo>> drawInfoList;
if (!drawInfoList.ContainsKey(priority))
{
    drawInfoList.Add(priority, new List<DrawInfo>());
}
drawInfoList[priority].Add(new DrawInfo(...));

これでええやんみたいな。