Ejemplo n.º 1
0
        public override int CompareTo(object y)
        {
            var other = y as Phase;

            if (other == null)
            {
                return(0);
            }

            var firstComparison = FirstPhase.CompareTo(other.FirstPhase);

            return(firstComparison != 0 ? firstComparison : SecondPhase.CompareTo(other.SecondPhase));
        }
Ejemplo n.º 2
0
        public int CompareTo(Phase other)
        {
            var firstComparison = FirstPhase.CompareTo(other.FirstPhase);

            return(firstComparison != 0 ? firstComparison : SecondPhase.CompareTo(other.SecondPhase));
        }