Hello how can I have like a catalog for a property in .net VB .. I mean if i have
Property funcion(ByVal _funcion As Int16) As Int16
Get
Return _funcion
End Get
Set(ByVal value As Int16)
_funcion = value
End Set
End Property
I want to be able to assign to this property a limited number of options.
Example ..
Dim a as trick
a.funcion = (and get a list of possible attributes) ...
Thanks !!!
Instead of having it be of type
Int16have it be anEnum. It won’t be perfect since someone could still get around it, but they’d have to make an effort.Here’s the documentation for
Enum:http://msdn.microsoft.com/en-us/library/8h84wky1%28VS.80%29.aspx