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)); }
public int CompareTo(Phase other) { var firstComparison = FirstPhase.CompareTo(other.FirstPhase); return(firstComparison != 0 ? firstComparison : SecondPhase.CompareTo(other.SecondPhase)); }