public override bool Equals(object rhsObj) { try { GoodCases2 rhs = (GoodCases2)rhsObj; return(x == rhs.x && y == rhs.y); } catch (Exception) { return(false); } }
public override bool Equals(object rhsObj) { if (rhsObj == null) { return(false); } GoodCases2 rhs = rhsObj as GoodCases2; if ((object)rhs == null) { return(false); } return(x == rhs.x && y == rhs.y); }