Type.IsNullable

语法

  Type.IsNullable(type as type) as logical

关于

如果类型是 nullable 类型,则返回 true;否则返回 false

示例 1

确定 number 是否可以为 null。

使用情况

Type.IsNullable(type number)

输出

false

示例 2

确定 type nullable number 是否可以为 null。

使用情况

Type.IsNullable(type nullable number)

输出

true

results matching ""

    No results matching ""