Beispiel #1
0
        public override int GetHashCode()
        {
            var hashCode = -1043886837;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Model);

            hashCode = hashCode * -1521134295 + MaxSpeed.GetHashCode();
            hashCode = hashCode * -1521134295 + MaxFlightDistance.GetHashCode();
            hashCode = hashCode * -1521134295 + MaxLoadCapacity.GetHashCode();
            return(hashCode);
        }
Beispiel #2
0
 public override int GetHashCode()
 {
     return(Model.GetHashCode() + MaxSpeed.GetHashCode() + MaxFlightDistance.GetHashCode() + MaxLoadCapacity.GetHashCode());
 }