I need a NOT operation on Enumeration in VB.NET (.NET 2), is it possible?
<DefaultValue(0)> _
Public Enum Orientation
Descending = -1
Undefined = 0
Ascending = 1
End Enum
by ex define a Not operation in order to do
myObj1.Orientation = Not myObj2.Orientation
Rules:
Desceding > Ascending,
Ascending > Desceding,
Undefined > Undefined