只是阅读MSDN文章上重写等式运算符这里
以下片段让我感到困惑......
// If parameter cannot be cast to Point return false.
TwoDPoint p = obj as TwoDPoint;
if ((System.Object)p == null) // <-- wtf?
{
return false;
}
Run Code Online (Sandbox Code Playgroud)
为什么要Object在这里进行null比较?