Mono Class Library: Overview

System.Nullable<T>: Members

The members of System.Nullable<T> are listed below.

See Also: Inherited members from System.ValueType

Public Constructors

Constructs and initializes a new instance of Nullable<T> giving it the specified initial value.

Public Properties

[read-only]
HasValuebool. Indicates whether the current instance contains a value.
[read-only]
ValueT. Gets the value, if any, of the current instance.

Public Methods

override
Equals(object) : bool
Determines whether the current instance and the specified object represent the same type and value.
override
GetHashCode() : int
Generates a hash code for the current instance.
GetValueOrDefault() : T
Returns the value of the current instance, or if it has none, returns the default value for the type T.
GetValueOrDefault(T) : T
Returns the value of the current instance, or if it has none, returns alternateDefaultValue.
override
ToString() : string
Returns a string representation of the value of the current instance.

Public Operators

static
Conversion to T(Explicit)Perform an explicit conversion of a Nullable<T> value to type T.
static
Conversion to System.Nullable<T>(Implicit)Perform an implicit conversion of a T value to Nullable<T>.