次の方法で共有


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