public int CompareTo(Race other) { int result = RaceDate.CompareTo(other.RaceDate); if (result == 0) { result = Id.CompareTo(other.Id); } return(result); }
public override string ToString() { return(string.Format("[Race: {2}, RaceDate={0}, Crews={3}]", RaceDate.ToString("yyyy-MM-dd"), Identifier, Name, Crews.Count)); }
public override string ToString() { return(string.Format(ID + " " + RaceCourse + " " + RaceDate.ToShortDateString() + " " + Amount + " " + Result)); }
public override int GetHashCode() { return(RaceDate.GetHashCode() ^ RaceDistance.GetHashCode() ^ WonPlace.GetHashCode()); }