Nullable<T> Members

Represents an object whose underlying type is a value type that can also be assigned null like a reference type.

The Nullable<T> type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Nullable<T> Initializes a new instance of the Nullable<T> structure to the specified value.
Top

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Indicates whether the current Nullable<T> object is equal to a specified object. (Overrides ValueType.Equals(Object).)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Retrieves the hash code of the object returned by the Value property. (Overrides ValueType.GetHashCode().)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetValueOrDefault Overloaded. Retrieves the value of the current Nullable<T> object, or a default value.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Returns the text representation of the value of the current Nullable<T> object. (Overrides ValueType.ToString().)
Top

  NameDescription
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Explicit Returns the value of a specified Nullable<T> value.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Implicit Creates a new Nullable<T> object initialized to a specified value.
Top

  NameDescription
Public property Supported by the .NET Compact Framework Supported by the XNA Framework HasValue Gets a value indicating whether the current Nullable<T> object has a value.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Value Gets the value of the current Nullable<T> value.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft