简单类型 / 可空类型
初始化
检查值的存在
获取值
空合并运算符(??)
using
System
;
int
? n1 =
42
;
var
value
= n1.
Value
;
//
value
is
42, Int
Console
.
WriteLine
(
value
);