最佳答案
你能解释一下吗,为什么 Console。WriteLine 写空行(Console.WriteLine(null)
给我编译错误) ,为什么没有 NullReferenceException (甚至 a+=1
也不应该引发它) ?
int? a = null;
a++; // Why there is not NullReferenceException?
Console.WriteLine(a); // Empty line