简单类型 / 可空类型

using System;

int? n1 = 42;
var value = n1.Value;
//value is 42, Int

Console.WriteLine(value);