C#中int? id 和 id ?? 1

int? id 表示id是可以为null的整型 跟Nullable <int> id 是一样的

id ?? 1等于 id==null?1:id;

原文地址:https://www.cnblogs.com/cnaspnet/p/1596387.html