Exemplo n.º 1
0
 /// <summary>
 /// Hash the decoupler.
 /// </summary>
 public override int GetHashCode ()
 {
     int hash = part.GetHashCode ();
     if (decoupler != null)
         hash ^= decoupler.GetHashCode ();
     if (anchoredDecoupler != null)
         hash ^= anchoredDecoupler.GetHashCode ();
     return hash;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Hash code for the object.
        /// </summary>
        public override int GetHashCode()
        {
            int hash = Part.GetHashCode();

            if (decoupler != null)
            {
                hash ^= decoupler.GetHashCode();
            }
            if (anchoredDecoupler != null)
            {
                hash ^= anchoredDecoupler.GetHashCode();
            }
            return(hash);
        }