Esempio 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;
 }
Esempio 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);
        }