A
Andrew J. Marshall
It was SO easy in VB6. Add a few methods, set a few funky properties and
*BAM*, type-safe collection class that supports the For Each...Next syntax.
I've been trying to do this in VB.NET with little success.
I started inherting DictionaryBase because of the Key retrieval ability, but
my code bombed on the For Each line because I had Option Strict On and the
types didn't match. I now loop with an Object and then use CType, but that's
BS! >8-(
Do I need to create my own Enumerator and overload Current()?
C'mon Generics!!!
Thanks in advance for help,
Andrew J. Marshall
MCP (Visual Basic)
Fairfax, VA
*BAM*, type-safe collection class that supports the For Each...Next syntax.
I've been trying to do this in VB.NET with little success.
I started inherting DictionaryBase because of the Key retrieval ability, but
my code bombed on the For Each line because I had Option Strict On and the
types didn't match. I now loop with an Object and then use CType, but that's
BS! >8-(
Do I need to create my own Enumerator and overload Current()?
C'mon Generics!!!
Thanks in advance for help,
Andrew J. Marshall
MCP (Visual Basic)
Fairfax, VA