Mono Class Library: System.Nullable<T> Overview | Members

System.Nullable<T>.GetValueOrDefault Overloads

The overloads of GetValueOrDefault are listed below. For a list of all members, see the Nullable<T> Members list.

Public Methods

GetValueOrDefault() : T
Returns the value of the current instance, or if it has none, returns the default value for the type T.
GetValueOrDefault(T) : T
Returns the value of the current instance, or if it has none, returns alternateDefaultValue.