N
Nathan Sokalski
I have an ASP.NET Control that takes an enumeration type as a property. If I
hardcode the type into my code as follows:
Dim names() As String = System.Enum.GetNames(GetType(NathanSokalski.Months))
Everythig works fine, but if I use the property, as in the following:
Dim names() As String = System.Enum.GetNames(Me._enumerationtype)
I recieve the following error:
Cannot create an object of type 'System.Type' from its string representation
'NathanSokalski.Months' for the 'EnumerationType' property.
How can I allow the user to enter an enumeration type as a property? Any
help (or examples) would be appreciated. Thanks.
hardcode the type into my code as follows:
Dim names() As String = System.Enum.GetNames(GetType(NathanSokalski.Months))
Everythig works fine, but if I use the property, as in the following:
Dim names() As String = System.Enum.GetNames(Me._enumerationtype)
I recieve the following error:
Cannot create an object of type 'System.Type' from its string representation
'NathanSokalski.Months' for the 'EnumerationType' property.
How can I allow the user to enter an enumeration type as a property? Any
help (or examples) would be appreciated. Thanks.