Equals(object)
override
public override bool Equals(object obj)Indicates whether this instance and a specified object are equal.
Parameters
objobject- The object to compare with the current instance.
Returns
true if obj and this instance are the same type and represent the same value; otherwise, false.