User-719153870 posted
Hi amithashenoy,
this.Name.Equals(other.Name) is
String.Equals Method and Object.Equals(this.Name,other.Name) is
Object.Equals Method, they are actually the same thing since string inherits from object.
Popular speaking, this.Name.Equals(other.Name) is like saying "whether A equal to B" while Object.Equals(this.Name,other.Name) is like saying "whether A and B are equal".
amithashenoy
which one is correct Objecct.Equals() or this.Name.Equals() both give same answers
In general, both of them are correct.
Best Regard,
Yang Shen