public ISimpleOrderedBag <IStudent> GetAllStudentsSorted(IComparer <IStudent> comparer) { var students = new SimpleSortedList <IStudent>((x, y) => comparer.Compare(x, y)); students.AddRange(this.Students.Values as ICollection <IStudent>); return(students); }
public ISimpleOrderedBag <ICourse> GetAllCoursesSorted(IComparer <ICourse> comparer) { var courses = new SimpleSortedList <ICourse>((x, y) => comparer.Compare(x, y)); courses.AddRange(this.Courses.Values as ICollection <ICourse>); return(courses); }