public int CompareTo(Student other) { return(StudentId.CompareTo(other.StudentId)); }
public int CompareTo(CreditData other) { int studentIdComparison = StudentId.CompareTo(other.StudentId); return(studentIdComparison != 0 ? studentIdComparison : CourseId.CompareTo(other.CourseId)); }