Beispiel #1
0
        /// <summary>
        /// Hash code for the object.
        /// </summary>
        public override int GetHashCode()
        {
            int hash = Part.GetHashCode();

            if (activeRadiator != null)
            {
                hash ^= activeRadiator.GetHashCode();
            }
            if (deployableRadiator != null)
            {
                hash ^= deployableRadiator.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
 /// <summary>
 /// Hash the radiator.
 /// </summary>
 public override int GetHashCode()
 {
     return(part.GetHashCode() ^ radiator.GetHashCode());
 }