可空类型(Nullbale Types)
<!--[if !supportLists]-->1. 可空类型是System.Nullbale<T>
<!--[endif]--><!--[if !supportLists]-->2. 可空类型可以表示其基础类型正常范围内的值,再加上一个null值
<!--[endif]-->例如:Nullable<Int32>
简化写法版:Nullable<int> n=null;
int? n=null;
<!--[if !supportLists]-->3. System.Nullbale<T>结构
<!--[endif]-->public bool HasValue {get;}是否有值
public T Value {get;}
public T GetValueOrDefault()
<!--[if !supportLists]-->4. 使用??运算符分配默认值。
<!--[endif]-->int? x=null;
int y=x?? -1;