G
Greg Allen
I have a class that I would like to instantiate with a number of different
enums (rather than copy the code each time for each enum).
Is this possible? If so, how?
I'd like to do something like:
Dim mEnum as System.Enum
Sub New (myEnum as System.Enum)
mEnum = myEnum
End Sub
Ideally, I could pass in my enumeration (by name, I assume) when the
class is instantiated, then within the class I would be able to call
all the methods on the enum (such as ToString, etc.). I haven't been
able to get it working -- maybe it's not possible?
Thanks,
-- Greg Allen
(e-mail address removed)
enums (rather than copy the code each time for each enum).
Is this possible? If so, how?
I'd like to do something like:
Dim mEnum as System.Enum
Sub New (myEnum as System.Enum)
mEnum = myEnum
End Sub
Ideally, I could pass in my enumeration (by name, I assume) when the
class is instantiated, then within the class I would be able to call
all the methods on the enum (such as ToString, etc.). I haven't been
able to get it working -- maybe it's not possible?
Thanks,
-- Greg Allen
(e-mail address removed)