アイテムのDictionary
合計があり、 <のときに th アイテムY
が必要な場合、これを達成するにはどうすればよいですか?N
N
Y
例:
Dictionary<int, string> items = new Dictionary<int, string>();
items.add(2, "Bob");
items.add(5, "Joe");
items.add(9, "Eve");
// We have 3 items in the dictionary.
// How to retrieve the second one without knowing the Key?
string item = GetNthItem(items, 2);
書き方はGetNthItem()
?