Bewerken

Share via


Nullable Class

Definition

Supports a value type that can be assigned null. This class cannot be inherited.

public ref class Nullable abstract sealed
public static class Nullable
[System.Runtime.InteropServices.ComVisible(true)]
public static class Nullable
type Nullable = class
[<System.Runtime.InteropServices.ComVisible(true)>]
type Nullable = class
Public Class Nullable
Inheritance
Nullable
Attributes

Remarks

For more information about this API, see Supplemental API remarks for Nullable.

Methods

Compare<T>(Nullable<T>, Nullable<T>)

Compares the relative values of two Nullable<T> objects.

Equals<T>(Nullable<T>, Nullable<T>)

Indicates whether two specified Nullable<T> objects are equal.

GetUnderlyingType(Type)

Returns the underlying type argument of the specified nullable type.

GetValueRefOrDefaultRef<T>(Nullable<T>)

Retrieves a readonly reference to the location in the Nullable<T> instance where the value is stored.

Applies to

See also