Unable to read values from Nested SortedDictionary in C#
- by Yogi
HI
I am using nested SortedDictionary in my code as SortedDictionary<string, SortedDictionary<string, int>> but not able to use value stored in this object.
Please find the code which i am using
SortedDictionary<string, SortedDictionary<string, int>> baseItemCounts =
new SortedDictionary<string, SortedDictionary<string, int>>();
baseItemCounts.Add("1450", new SortedDictionary<string, int>());
baseItemCounts["1450"].Add("1450M", 15);
I want to print these values on screen. but don't know how to access it.
1450
1450M ==== 15
Please some one can help?