Method ValidateDefined
ValidateDefined<T>(T, String)
Validates that a value is defined on the Enum type.
Declaration
public static T ValidateDefined<T>(this T value, string paramName)
where T : Enum
Parameters
public static T ValidateDefined<T>(this T value, string paramName)
where T : Enum
T | value | Value to check is defined. |
System.String | paramName | name of the parameter owning the value. |
Returns
T |
|
Type Parameters
T | Enumeration type. |