Method ThrowIfNotDefined
ThrowIfNotDefined<TEnum>(TEnum, string)
Throws an ArgumentOutOfRangeException if the value is not defined.
Declaration
public static void ThrowIfNotDefined<TEnum>(this TEnum value, string paramName) where TEnum : unmanaged, Enum
Parameters
| Type | Name | Description |
|---|---|---|
| TEnum | value | The value to check. |
| string | paramName | The name of the parameter for the exception. |
Type Parameters
| Name | Description |
|---|---|
| TEnum |