System::Nullable::GetValueOrDefault method

Nullable::GetValueOrDefault() method

T System::Nullable<T>::GetValueOrDefault()

See Also

Nullable::GetValueOrDefault(T) method

Returns the value represented by the current object or the specified value if the value represented by the current object is null.

T System::Nullable<T>::GetValueOrDefault(T default_value)
ParameterTypeDescription
default_valueTThe value returned by the method if the value represented by the current object is null

ReturnValue

A copy of the value represented by the current object is it is not null, otherwise the specified value is returned

See Also