예제 #1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            GF2Polynomial gF2Polynomial = obj as GF2Polynomial;

            return(gF2Polynomial != null && Arrays.AreEqual(this.exponents, gF2Polynomial.exponents));
        }
예제 #2
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            GF2Polynomial other = obj as GF2Polynomial;

            if (null == other)
            {
                return(false);
            }
            return(Arrays.AreEqual(exponents, other.exponents));
        }
예제 #3
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            GF2Polynomial polynomial = obj as GF2Polynomial;

            if (polynomial == null)
            {
                return(false);
            }
            return(Arrays.AreEqual(this.exponents, polynomial.exponents));
        }