相关疑难解决方法(0)

为什么编译器至少不警告这个== null

为什么C#编译器甚至没有对此代码发出警告?:

if (this == null)
{
   // ...
}
Run Code Online (Sandbox Code Playgroud)

显然,这种情况永远不会得到满足.

c# compiler-construction null this

21
推荐指数
2
解决办法
1761
查看次数

标签 统计

c# ×1

compiler-construction ×1

null ×1

this ×1