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> インスタンス内の場所への読み取り専用参照を取得します。

適用対象

こちらもご覧ください