public Group(FacultyType faculty, SpecialityTitle speciality, int year) { this.faculty = faculty; this.speciality = speciality; this.year = year; foreach (var ec in existingGroupsCount.Keys) { if (Title != ec) count = 1; else count++; } existingGroupsCount.Add(Title, count); }
public Group(FacultyType faculty, SpecialityTitle speciality, int year) { this.faculty = faculty; this.speciality = speciality; this.year = year; foreach (var ec in existingGroupsCount.Keys) { if (Title != ec) { count = 1; } else { count++; } } existingGroupsCount.Add(Title, count); }