== vs. Object.Equals(object) in .NET

前端 未结 9 2257
无人及你
无人及你 2020-11-28 22:33

So, when I was a comparative novice to the novice I am right now, I used to think that these two things were syntactic sugar for each other, i.e. that using one over the oth

9条回答
  •  悲&欢浪女
    2020-11-28 23:16

    You may want to use .Equals as someone may come along at a later time and overload them for you class.

提交回复
热议问题