Nullable(T) Methods
Collapse the table of content
Expand the table of content

Nullable<T> Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The Nullable<T> type exposes the following members.

Public method Equals Indicates whether the current Nullable<T> object is equal to a specified object. (Overrides ValueType.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Retrieves the hash code of the object returned by the Value property. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
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.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns the text representation of the value of the current Nullable<T> object. (Overrides ValueType.ToString().)

© 2016 Microsoft