解释为什么无法为int赋值null,例如
int? accom = (accomStr == "noval" ? null : Convert.ToInt32(accomStr));
这段代码出了什么问题?
c# nullable
c# ×1
nullable ×1