Beispiel #1
0
 public override string ToString()
 {
     return(Id + ";" +
            LocationFrom?.ToString() + ";" +
            LocationTo?.ToString() + ";" +
            Departure.ToString("dd-MM-yyyy HH:mm") + ";" +
            Arrival.ToString("dd-MM-yyyy HH:mm") + ";" +
            DistanceMiles.ToString() + ";" +
            Price?.ToString());
 }
Beispiel #2
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     return(Timestamp.GetHashCode()
            ^ Second.GetHashCode()
            ^ DistanceMiles.GetHashCode()
            ^ WorkoutTime.GetHashCode()
            ^ SpeedMph.GetHashCode()
            ^ RotationsPerMinute.GetHashCode()
            ^ Unknown1.GetHashCode()
            ^ SpeedValue.GetHashCode()
            ^ Unknown2.GetHashCode()
            ^ Unknown3.GetHashCode());
 }