Пример #1
0
 public int CompareTo(Student other)
 {
     return(StudentId.CompareTo(other.StudentId));
 }
Пример #2
0
        public int CompareTo(CreditData other)
        {
            int studentIdComparison = StudentId.CompareTo(other.StudentId);

            return(studentIdComparison != 0 ? studentIdComparison : CourseId.CompareTo(other.CourseId));
        }