Esempio n. 1
0
        public override bool Equals([NotNullWhen(true)] object?other)
        {
            if (other is Int32Pair)
            {
                Int32Pair o = (Int32Pair)other;
                return(_left == o._left && _right == o._right);
            }

            return(false);
        }
Esempio n. 2
0
        public override bool Equals(object other)
        {
            if (other is Int32Pair)
            {
                Int32Pair o = (Int32Pair)other;
                return(_left == o._left && _right == o._right);
            }

            return(false);
        }
Esempio n. 3
0
        public override bool Equals(object other)
        {
            if (!(other is Int32Pair))
            {
                return(false);
            }
            Int32Pair pair = (Int32Pair)other;

            return((this.left == pair.left) && (this.right == pair.right));
        }