Here is the code I am using
I know that I can I replace the var item with something like:
I am using class called People that derives from DictionaryBase while the Person class is the object I'm trying to order by/sort according to the ID that I used for the DictionaryBase.
Code:
foreach (var item in peeps) { Console.WriteLine(((Person)item).name); }
Code:
foreach (Person p in peeps) { Console.WriteLine(p.name); }
Comment