Unable to read values from Nested SortedDictionary in C#

Posted by Yogi on Stack Overflow See other posts from Stack Overflow or by Yogi
Published on 2010-05-26T16:01:12Z Indexed on 2010/05/26 16:21 UTC
Read the original article Hit count: 323

Filed under:

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?

© Stack Overflow or respective owner

Related posts about c#