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(Entry other) { return(other != null && Code.Equals(other.Code) && Volume.Equals(other.Volume) && Count.Equals(other.Count) && Date.Equals(other.Date) && Type.Equals(other.Type) && Sender.Equals(other.Sender) && Recipient.Equals(other.Recipient) && ShipmentCountry.Equals(other.ShipmentCountry) && ShipmentState.Equals(other.ShipmentState) && ShipmentRailRoad.Equals(other.ShipmentRailRoad) && ShipmentStation.Equals(other.ShipmentStation) && DestinationCountry.Equals(other.DestinationCountry) && DestinationState.Equals(other.DestinationState) && DestinationRailRoad.Equals(other.DestinationRailRoad) && 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 + Date.GetHashCode(); hashCode = hashCode * -1521134295 + Type.GetHashCode(); hashCode = hashCode * -1521134295 + Sender.GetHashCode(); hashCode = hashCode * -1521134295 + Recipient.GetHashCode(); hashCode = hashCode * -1521134295 + ShipmentCountry.GetHashCode(); hashCode = hashCode * -1521134295 + ShipmentState.GetHashCode(); hashCode = hashCode * -1521134295 + ShipmentRailRoad.GetHashCode(); hashCode = hashCode * -1521134295 + ShipmentStation.GetHashCode(); hashCode = hashCode * -1521134295 + DestinationCountry.GetHashCode(); hashCode = hashCode * -1521134295 + DestinationState.GetHashCode(); hashCode = hashCode * -1521134295 + DestinationRailRoad.GetHashCode(); hashCode = hashCode * -1521134295 + DestinationStation.GetHashCode(); return(hashCode); }