System.Nullable<T>: Method Members

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

See Also: Inherited members from System.ValueType

Public Methods

override
Equals(object) : bool

Indicates whether the current Nullable`1 object is equal to a specified object.

override
GetHashCode() : int

Retrieves the hash code of the object returned by the Nullable`1.Value property.

GetValueOrDefault() : T

Retrieves the value of the current Nullable`1 object, or the object's default value.

GetValueOrDefault(T) : T
Returns the value of the current instance, or if it has none, returns alternateDefaultValue.
override
ToString() : string

Returns the text representation of the value of the current Nullable`1 object.