I have an enumeration MyEnum (Neg -1; None 0; Pos 1).
I use the result of CompareTo() to initialize a object of that enum.
What is the most performant way in .NET to do it (Negative to -1, 0 to 0, Positive to 1)?
NB.
CompareTo() returns an Integer value..
Have a look at Math.Sign