NullableTGetValueOrDefault Method |
Retrieves the value of the current
NullableT object, or the object's default value.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public T GetValueOrDefault()
Return Value
Type:
TThe value of the
Value property if the
HasValue property is true; otherwise, the default value of the current
NullableT object. The type of the default value is the type argument of the current
NullableT object, and the value of the default value consists solely of binary zeroes.
See Also