Click or drag to resize
NullableTGetValueOrDefault Method (T)

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public T GetValueOrDefault(
	T defaultValue
)

Parameters

defaultValue
Type: T
A value to return if the HasValue property is false.

Return Value

Type: T
The value of the Value property if the HasValue property is true; otherwise, the defaultValue parameter.
See Also