'Declaration
Public Overloads Shared Function IsValid( _ ByVal enumValue As Integer, _ ByVal minValueOfEnum As Integer, _ ByVal maxValueOfEnum As Integer _ ) As Boolean
public static bool IsValid( int enumValue, int minValueOfEnum, int maxValueOfEnum )
Parameters
- enumValue
- An int indivate the value you want to check
- minValueOfEnum
- An int indicate the minimum value of your enum type
- maxValueOfEnum
- An int indicate the maximum value of your enum type
Return Value
A bool indicate the check result, if current value is a valid enum type, return true; otherwise false