Beispiel #1
0
        public int CompareTo(object obj)
        {
            var o = obj as FlightPair;

            var departCompare = Departure.CompareTo(o.Departure);

            if (departCompare == 0)
            {
                return(Destination.CompareTo(o.Destination));
            }

            return(departCompare);
        }