示例#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));
        }