Nullable クラス

定義

null を割り当て可能な値型をサポートします。 このクラスは継承できません。

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
継承
Nullable
属性

注釈

この API の詳細については、「 Nullable の補足 API 解説」を参照してください。

メソッド

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

2 つの Nullable<T> オブジェクトの相対値を比較します。

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

指定した 2 つの Nullable<T> オブジェクトが等しいかどうかを示します。

GetUnderlyingType(Type)

指定した NULL 許容型の基になる型を返します。

GetValueRefOrDefaultRef<T>(Nullable<T>)

値が格納されているインスタンス内 Nullable<T> の場所への読み取り専用参照を取得します。

適用対象

こちらもご覧ください