Object.Equals in C #

1

Is it the same to use the operator == that Object.Equals in C #?

    
asked by Moha Mohito 29.09.2017 в 18:29
source

1 answer

0

== is used as an expression of type object, it will resolve to System.Object.ReferenceEquals.

Equals is just a virtual method and behaves as such, so the annulled version will be used (which, for the string type, compares the content)

answer found here

    
answered by 29.09.2017 / 18:34
source