Esempio n. 1
0
        public override int GetHashCode()
        {
            var hashCode = -485759360;

            hashCode = hashCode * -1521134295 + CoreClock.GetHashCode();
            hashCode = hashCode * -1521134295 + CoreVoltage.GetHashCode();
            hashCode = hashCode * -1521134295 + FanRPM.GetHashCode();
            hashCode = hashCode * -1521134295 + MemClock.GetHashCode();
            hashCode = hashCode * -1521134295 + PowerConsumption.GetHashCode();
            hashCode = hashCode * -1521134295 + PowerLimit.GetHashCode();
            hashCode = hashCode * -1521134295 + Temp.GetHashCode();
            return(hashCode);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = 1;
         hashCode = (hashCode * 397) ^ (Voltage != null ? Voltage.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TempLimit != null ? TempLimit.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PowerLimit != null ? PowerLimit.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CoreClock != null ? CoreClock.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MemoryClock != null ? MemoryClock.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FanSpeed != null ? FanSpeed.GetHashCode() : 0);
         return(hashCode);
     }
 }