In C#, for String class Equals means value equality or reference equality?

The default implementation of Equals supports reference equality only, but derived classes can override this method to support value equality.

Reference equality occurs when two reference type objects refer to the same object. Sometimes reference types need to define value equality instead of reference equality. Fortunately, the Equals method is virtual, so derived reference types may override it.

Need Help? Contact Us.

Log in

*
*

Forgot password?

*

New User

*
*
*
*