Example #1
0
 public override void AddDay(Time start)
 {
     Arrival          = Arrival.MakeAfterByAddingADay(start);
     WorkingArrival   = WorkingArrival.MakeAfterByAddingADay(start);
     Departure        = Departure.MakeAfterByAddingADay(start);
     WorkingDeparture = WorkingDeparture.MakeAfterByAddingADay(start);
 }
 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);
     }
 }