示例#1
0
 public override bool Equals(object obj)
 {
     if (obj is GoodCases3)
     {
         GoodCases3 rhs = (GoodCases3)obj;
         return(x == rhs.x && y == rhs.y);
     }
     else
     {
         return(false);
     }
 }
示例#2
0
            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);
            }