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 備註

方法

名稱 Description
Compare<T>(Nullable<T>, Nullable<T>)

比較兩個 Nullable<T> 物體的相對價值。

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

表示兩個指定 Nullable<T> 物件是否相等。

GetUnderlyingType(Type)

回傳指定可空型態的底層型別參數。

適用於

另請參閱