語法
Type.IsNullable(type as type) as logical
關於
如果類型為 true 類型,則傳回 nullable;否則傳回 false。
範例 1
判斷 number 是否可為 null。
使用方式
Type.IsNullable(type number)
輸出
false
範例 2
判斷 type nullable number 是否可為 null。
使用方式
Type.IsNullable(type nullable number)
輸出
true