Nullable<T>.GetValueOrDefault Method

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method GetValueOrDefault() Retrieves the value of the current Nullable<T> object, or the object's default value.
Public method GetValueOrDefault(T) Retrieves the value of the current Nullable<T> object, or the specified default value.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft