Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Drinking.GetHashCode();
         hashCode = (hashCode * 397) ^ Smoking.GetHashCode();
         hashCode = (hashCode * 397) ^ CleaningSchedule.GetHashCode();
         hashCode = (hashCode * 397) ^ Animals.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
        ///<inheritdoc/>
        public override int GetHashCode()
        {
            int hash = 17;

            // Overflow is fine, just wrap
            unchecked
            {
                hash = (hash * 29) + PercentComplete.GetHashCode();
                hash = (hash * 29) + Damage.GetHashCode();
                hash = (hash * 29) + Predistributed.GetHashCode();
                hash = (hash * 29) + State.GetHashCode();
                hash = (hash * 29) + Smoking.GetHashCode();
                hash = (hash * 29) + Flaming.GetHashCode();
            }

            return(hash);
        }