Ejemplo n.º 1
0
        ///<summary>
        /// Get Hash Code.
        ///</summary>
        ///<returns>Hash Code for the current instance.</returns>
        public override int GetHashCode()
        {
            int hashCode = base.GetHashCode();

            if (_Quantity != null)
            {
                hashCode += _Quantity.GetHashCode();
            }
            if (_ElementSet != null)
            {
                hashCode += _ElementSet.GetHashCode();
            }
            return(hashCode);
        }
Ejemplo n.º 2
0
        ///<summary>
        /// Get Hash Code.
        ///</summary>
        ///<returns>Hash Code for the current instance.</returns>
        public override int GetHashCode()
        {
            int hashCode = base.GetHashCode();

            if (_sourceQuantity != null)
            {
                hashCode += _sourceQuantity.GetHashCode();
            }
            if (_sourceElementSet != null)
            {
                hashCode += _sourceElementSet.GetHashCode();
            }
            if (_targetQuantity != null)
            {
                hashCode += _targetQuantity.GetHashCode();
            }
            if (_targetElementSet != null)
            {
                hashCode += _targetElementSet.GetHashCode();
            }
            return(hashCode);
        }