public override int GetHashCode() { unchecked { var hashCode = (Category != null ? Category.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CateringCode != null ? CateringCode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ConnectionIndicator != null ? ConnectionIndicator.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CourseIndicator != null ? CourseIndicator.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (HeadCode != null ? HeadCode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (OperatingCharacteristics != null ? OperatingCharacteristics.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PortionId != null ? PortionId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PowerType != null ? PowerType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)RecordIdentity; hashCode = (hashCode * 397) ^ (int)Reservations; hashCode = (hashCode * 397) ^ (Rsid != null ? Rsid.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)SeatingClass; hashCode = (hashCode * 397) ^ (ServiceBranding != null ? ServiceBranding.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ServiceCode != null ? ServiceCode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)Sleepers; hashCode = (hashCode * 397) ^ Speed; hashCode = (hashCode * 397) ^ (TimingLoad != null ? TimingLoad.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Tiploc != null ? Tiploc.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TiplocSuffix != null ? TiplocSuffix.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TrainIdentity != null ? TrainIdentity.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (UicCode != null ? UicCode.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = EngineeringAllowance.GetHashCode(); hashCode = (hashCode * 397) ^ (Line != null ? Line.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)LocationActivity; hashCode = (hashCode * 397) ^ (LocationActivityString != null ? LocationActivityString.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (OrderTime != null ? OrderTime.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Pass != null ? Pass.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Path != null ? Path.GetHashCode() : 0); hashCode = (hashCode * 397) ^ PathingAllowance.GetHashCode(); hashCode = (hashCode * 397) ^ PerformanceAllowance.GetHashCode(); hashCode = (hashCode * 397) ^ (Platform != null ? Platform.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PublicArrival != null ? PublicArrival.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PublicDeparture != null ? PublicDeparture.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)RecordIdentity; hashCode = (hashCode * 397) ^ (Tiploc != null ? Tiploc.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TiplocSuffix != null ? TiplocSuffix.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (WorkingArrival != null ? WorkingArrival.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (WorkingDeparture != null ? WorkingDeparture.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { return(Tiploc.GetHashCode()); }