Exemplo n.º 1
0
 public override string ToString()
 {
     return($@"GpuIndexOrBusId={GpuIndexOrBusId.ToString()}
             CoreClockMin={CoreClockMin.ToString()},CoreClockMax={CoreClockMax.ToString()},CoreClockDelta={CoreClockDelta.ToString()},CoreVoltage={CoreVoltage.ToString()}
             MemoryClockMin={MemoryClockMin.ToString()},MemoryClockMax={MemoryClockMax.ToString()},MemoryClockDelta={MemoryClockDelta.ToString()},MemoryVoltage={MemoryVoltage.ToString()},
             VoltMin={VoltMin.ToString()},VoltMax={VoltMax.ToString()},VoltDefault={VoltDefault.ToString()}
             PowerMin={PowerMin.ToString()},PowerMax={PowerMax.ToString()},PowerCurr={PowerCurr.ToString()},PowerDefault={PowerDefault.ToString()}
             TempLimitMin={TempLimitMin.ToString()},TempLimitMax={TempLimitMax.ToString()},TempCurr={TempCurr.ToString()},TempLimitDefault={TempLimitDefault.ToString()}
             FanSpeedMin={FanSpeedMin.ToString()},FanSpeedMax={FanSpeedMax.ToString()},FanSpeedCurr={FanSpeedCurr.ToString()}");
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            var hashCode = 156220204;

            hashCode = hashCode * -1521134295 + CoreClockDefault.GetHashCode();
            hashCode = hashCode * -1521134295 + CoreClockMax.GetHashCode();
            hashCode = hashCode * -1521134295 + CoreClockMin.GetHashCode();
            hashCode = hashCode * -1521134295 + MemoryClockDefault.GetHashCode();
            hashCode = hashCode * -1521134295 + MemoryClockMax.GetHashCode();
            hashCode = hashCode * -1521134295 + MemoryClockMin.GetHashCode();
            hashCode = hashCode * -1521134295 + VoltageDefault.GetHashCode();
            hashCode = hashCode * -1521134295 + VoltageMax.GetHashCode();
            hashCode = hashCode * -1521134295 + VoltageMin.GetHashCode();
            return(hashCode);
        }