Exemplo n.º 1
0
 public override bool Equals(object obj)
 {
     return(obj is LapEntry entry &&
            TimeOfDay.Equals(entry.TimeOfDay) &&
            DriverNumber == entry.DriverNumber &&
            DriverName == entry.DriverName &&
            LapNumber == entry.LapNumber &&
            LapTime.Equals(entry.LapTime) &&
            AvarageSpeed == entry.AvarageSpeed);
 }
Exemplo n.º 2
0
 public bool Equals(CalculatedLap other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Time.Equals(other.Time) && Index == other.Index && LapTime.Equals(other.LapTime) && Rounds == other.Rounds && RoundsToGo == other.RoundsToGo &&
            PassedLength == other.PassedLength && Ranking == other.Ranking);
 }