I have created a DictionaryClass of type KeyValue (which is also my
class). All the properties seem to work correctly but during the for
each i have to perform a cast on the DictionaryEntry 's value property to
get the correct datatype. What i really want is to not have that cast
and have the budf in the for each.
Public Class KeyValueDiction ary : Inherits DictionaryBase
....
dim de As DictionaryEntry
dim budf as KeyValue
have this.
For Each de In Me
budf = CType(de.Value, KeyValue)
want this.
For Each budf In Me
Do i need to override getEnumerator or something?
dan
class). All the properties seem to work correctly but during the for
each i have to perform a cast on the DictionaryEntry 's value property to
get the correct datatype. What i really want is to not have that cast
and have the budf in the for each.
Public Class KeyValueDiction ary : Inherits DictionaryBase
....
dim de As DictionaryEntry
dim budf as KeyValue
have this.
For Each de In Me
budf = CType(de.Value, KeyValue)
want this.
For Each budf In Me
Do i need to override getEnumerator or something?
dan