public override bool Equals(object obj) { if (obj is GoodCases3) { GoodCases3 rhs = (GoodCases3)obj; return(x == rhs.x && y == rhs.y); } else { return(false); } }
public override bool Equals(object rhsObj) { if (rhsObj == null) { return(false); } GoodCases3 rhs = rhsObj as GoodCases3; if ((object)rhs == null) { return(false); } return(x == rhs.x && y == rhs.y); }