Difference between Equals/equals and == operator?

前端 未结 11 954
一生所求
一生所求 2020-11-22 14:14

What is the difference between a == b and a.Equals(b)?

11条回答
  •  感情败类
    2020-11-22 14:49

    ==, It only returns a value of hash code according to their addresses so the different addresses even though the strings or any data which r similar also it returns false....THis s help full for the conditions ,returns boolean value.

提交回复
热议问题