类型加问号 如:int ?表示可为空的类型
public int addRow(int? id,string name)
例子: FormsAuth = formsAuth ?? new FormsAuthenticationService();
如果变量不为null调用左边公式, 为空则调用右边公式。
C#中可为空类型的使用
类型加问号 如:int ?表示可为空的类型
public int addRow(int? id,string name)
例子: FormsAuth = formsAuth ?? new FormsAuthenticationService();
如果变量不为null调用左边公式, 为空则调用右边公式。

被折叠的 条评论
为什么被折叠?