Given this:
public enum SomeTypes
{
SomeType1 = 1,
SomeType2 = 2,
SomeType3 = 3
}
and a class:
public SomeClass
{
public SomeTypes SomeType { get; set; };
}
What is the best way to check if the enum is within range (i.e. not 0). I guess it would involve IsDefined?