What is the default behavior of Equals Method?
Posted
by Mostafa Mahdieh
on Stack Overflow
See other posts from Stack Overflow
or by Mostafa Mahdieh
Published on 2010-04-13T18:59:18Z
Indexed on
2010/04/13
19:03 UTC
Read the original article
Hit count: 267
c#
Let A be a class with some members as x, y, z:
Class A {
int x;
int y;
String z;
...
}
A is an Object so it inherits the "Equals" functions defined in Object. What is the default behavior of this function? Does it check for the equality of members or does it check for reference equality?
© Stack Overflow or respective owner