Esempio n. 1
0
        public int CompareTo(Race other)
        {
            int result = RaceDate.CompareTo(other.RaceDate);

            if (result == 0)
            {
                result = Id.CompareTo(other.Id);
            }

            return(result);
        }
Esempio n. 2
0
 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));
 }
Esempio n. 4
0
 public override int GetHashCode()
 {
     return(RaceDate.GetHashCode() ^ RaceDistance.GetHashCode() ^ WonPlace.GetHashCode());
 }