Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Rain.GetHashCode() * 397) ^ (Module != null ? Module.GetHashCode() : 0));
     }
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = UnixTimestamp;
         hashCode = (hashCode * 397) ^ Temp.GetHashCode();
         hashCode = (hashCode * 397) ^ Pressure.GetHashCode();
         hashCode = (hashCode * 397) ^ Humidity;
         hashCode = (hashCode * 397) ^ WeatherDescription.GetHashCode();
         hashCode = (hashCode * 397) ^ Speed.GetHashCode();
         hashCode = (hashCode * 397) ^ Deg;
         hashCode = (hashCode * 397) ^ Clouds;
         hashCode = (hashCode * 397) ^ Rain.GetHashCode();
         return(hashCode);
     }
 }