Ejemplo n.º 1
0
            public override bool Equals(object rhsObj)
            {
                if (GetType() != rhsObj.GetType())
                {
                    return(false);
                }

                GoodCases rhs = (GoodCases)rhsObj;

                return(x == rhs.x && y == rhs.y);
            }
Ejemplo n.º 2
0
            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);
            }