Method ThrowIfNotValid
ThrowIfNotValid<TEnum>(TEnum, string)
Throws an ArgumentOutOfRangeException if the value is not valid.
Declaration
public static void ThrowIfNotValid<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 |