Nullable<T>.GetValueOrDefault Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Retrieves the value of the current Nullable<T> object, or a default value.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodGetValueOrDefault()

Retrieves the value of the current Nullable<T> object, or the object's default value.

System_CAPS_pubmethodGetValueOrDefault(T)

Retrieves the value of the current Nullable<T> object, or the specified default value.

Return to top
Show: