Nullable 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
支援可指派 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) |
回傳指定可空型態的底層型別參數。 |