Sorting a C# Dictionary

Posted by SoulReaver on Stack Overflow See other posts from Stack Overflow or by SoulReaver
Published on 2010-04-24T18:18:18Z Indexed on 2010/04/24 18:23 UTC
Read the original article Hit count: 171

Filed under:
|
|
|

I have a dictionary in C# like

Dictionary<Person, int>

and I want to sort that dictionary in place with respect to keys (a field in class Person). How can I do it? Every available help on the internet is that of lists with no particular example of in place sorting of Dictionary. Any help would be highly appreciated!

© Stack Overflow or respective owner

Related posts about c#

Related posts about sort