Exemplo n.º 1
0
        public bool Equals(Izolation other)
        {
            //Check whether the compared object is null.
            if (Object.ReferenceEquals(other, null))
            {
                return(false);
            }

            //Check whether the compared object references the same data.
            if (Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            //Check whether the products' properties are equal.
            return(Type.Equals(other.Type) && Tube.Equals(other.Tube) && Layer1.Equals(other.Layer1) &&
                   Layer2.Equals(other.Layer2) && Layer3.Equals(other.Layer3));
        }