假设现在有一个学生类 class Student { int age; public Student(int age) { this.age = age; } } 要使学生类之间能进行比较,实现System.IComparable接口的CompareTo方法 class Student : System.IComparable { int age; public Student(int age) { this.age = age; } public int CompareTo(object ob…