Method ValidateNotDefault
ValidateNotDefault<T>(T, String)
Verifies that a value is not equal to the default for the type.
Declaration
public static T ValidateNotDefault<T>(this T value, string paramName)
Parameters
public static T ValidateNotDefault<T>(this T value, string paramName)
T | value | Value to test. |
System.String | paramName | Name of the parameter for the argument exception generated. |
Returns
T |
|
Type Parameters
T | Type of value to test for. |
Exceptions
System.ArgumentNullException |
|