TypeMismatchException

time to read 1 min | 67 words

Well, apperantely I got burned because of a type mismatch.

The previous time was an IList insead of of TreeNodeCollection, now it was some strange behaviour on part of HybridDictionary.

Apperantely, hybridDictionary.Keys does not return an object[] or IList or anything like that, instead, they return a DictionaryEntry, and remember, we're talking about the Keys collection.

If not for Roy Osherove's help, I would still be stumped.
Thanks Roy.