private DepartmentInfo()
 {
     IdToDepartment   = new OptionalDictionary <int, DepartmentModel>();
     NameToDepartment = new OptionalDictionary <string, DepartmentModel>();
     DeptIds          = new HashSet <int>();
     Lock             = new ReadWriteLock();
 }
 private CourseInfo()
 {
     CourseCodeToCourse = new OptionalDictionary <string, CourseModel>();
     CourseNameToCourse = new OptionalDictionary <string, CourseModel>();
     CourseCodes        = new HashSet <string>();
     Lock = new ReadWriteLock();
 }
示例#3
0
        private TermInfo()
        {
            IdToTerm     = new OptionalDictionary <int, TermModel>();
            StringToTerm = new OptionalDictionary <string, TermModel>();
            Ids          = new SortedSet <int>();
            IdHashSet    = new HashSet <int>();

            Lock = new ReadWriteLock();
        }