public bool Equals(Cargo other) { return(other != null && Code.Equals(other.Code) && Volume.Equals(other.Volume) && Count.Equals(other.Count) && DispatchDate.Equals(other.DispatchDate) && CargoType.Equals(other.CargoType) && Sender.Equals(other.Sender) && Recipient.Equals(other.Recipient) && ShipmentStation.Equals(other.ShipmentStation) && DestinationStation.Equals(other.DestinationStation)); }
public override int GetHashCode() { var hashCode = 352033288; hashCode = hashCode * -1521134295 + Code.GetHashCode(); hashCode = hashCode * -1521134295 + Volume.GetHashCode(); hashCode = hashCode * -1521134295 + Count.GetHashCode(); hashCode = hashCode * -1521134295 + DispatchDate.GetHashCode(); hashCode = hashCode * -1521134295 + CargoType.GetHashCode(); hashCode = hashCode * -1521134295 + Sender.GetHashCode(); hashCode = hashCode * -1521134295 + Recipient.GetHashCode(); hashCode = hashCode * -1521134295 + ShipmentStation.GetHashCode(); hashCode = hashCode * -1521134295 + DestinationStation.GetHashCode(); return(hashCode); }
public bool Equals(CargoType other) { return(other != null && Id.Equals(other.Id) && Type.Equals(other.Type)); }