Method HasValue
HasValue<T>(T?, string)
Ensures that the value of a parameter is not null.
public static T? HasValue<T>(T? value, string paramName) where T : struct
Parameters
valueT?The value of the parameter.
paramNamestringThe name of the parameter.
Returns
- T?
The value of the parameter.
Type Parameters
TType type of the value.