public override bool Equals(object rhsObj) { if (GetType() != rhsObj.GetType()) { return(false); } GoodCases rhs = (GoodCases)rhsObj; return(x == rhs.x && y == rhs.y); }
public override bool Equals(object rhsObj) { if (rhsObj == null) { return(false); } GoodCases rhs = rhsObj as GoodCases; if ((object)rhs == null) { return(false); } return(x == rhs.x && y == rhs.y); }