Is it necessary to override == and != operators when overriding the Equals method? (.NET)

后端 未结 9 1188
一向
一向 2021-01-11 19:06

Or it\'s advisable to do that? Why?

9条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-11 19:11

    in A.Equals(B) A cannot be null in A == B either can be null

提交回复
热议问题