Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Title != null ? Title.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Temperature != null ? Temperature.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Wind != null ? Wind.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Humidity != null ? Humidity.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Visibility != null ? Visibility.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Sunrise != null ? Sunrise.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Sunset != null ? Sunset.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     return(Sunrise.GetHashCode());
 }