コード例 #1
0
ファイル: Group.cs プロジェクト: SalamanderSunburn/tasks_cs1
        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);
        }
コード例 #2
0
ファイル: Group.cs プロジェクト: taisiialoza/tasks_cs1
        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);
        }