예제 #1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (GetType() != obj.GetType())
            {
                return(false);
            }
            ProductFormPolynomial other = (ProductFormPolynomial)obj;

            if (F1 == null)
            {
                if (other.F1 != null)
                {
                    return(false);
                }
            }
            else if (!F1.Equals(other.F1))
            {
                return(false);
            }
            if (F2 == null)
            {
                if (other.F2 != null)
                {
                    return(false);
                }
            }
            else if (!F2.Equals(other.F2))
            {
                return(false);
            }
            if (F3 == null)
            {
                if (other.F3 != null)
                {
                    return(false);
                }
            }
            else if (!F3.Equals(other.F3))
            {
                return(false);
            }
            return(true);
        }