The enumerator for DictionaryBase actually returns DictionaryEntry objects, which contain the key/value pair. What I normally do is put this in my collection class...
VB Code:
Public Shadows Function GetEnumerator() As IEnumerator Return Dictionary.Values.GetEnumerator End Function
And then your code should work.




Reply With Quote