示例#1
0
 public override bool Equals(object rhsObj)
 {
     try
     {
         GoodCases2 rhs = (GoodCases2)rhsObj;
         return(x == rhs.x && y == rhs.y);
     }
     catch (Exception)
     {
         return(false);
     }
 }
示例#2
0
            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);
            }