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 的详细信息,请参阅 可为 Null 的补充 API 备注

方法

名称 说明
Compare<T>(Nullable<T>, Nullable<T>)

比较两个 Nullable<T> 对象的相对值。

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

指示两个指定的 Nullable<T> 对象是否相等。

GetUnderlyingType(Type)

返回指定可为 null 类型的基础类型参数。

适用于

另请参阅