Chapter 11, Exercise 3 GetOldest() Method
I am having problem tsting the method. I m getting an InvalidCastException when I try to use the author's solution.
My question is why do we use DictionaryEntry at the end to copy the contents from oldestPeople to oldestPeopleArray when we had already cast the DictionaryEntry struct into a Person object when we added it to the oldPeople object?
|