辞書の値を別々のラベルで表示したい。次のような辞書を取得します。
Dictionary<string, int> counts = new Dictionary<string, int>();
foreach (string code in myCodeList)
{
if (!counts.ContainsKey(code))
{
counts.Add(code, 1);
}
else
{
counts[code]++;
}
}
//now counts contains the expected values
counts
の要素は実行時にしか決定できないため、ラベルを動的に生成したいと考えています。