public sGroup(Group group, sSchedule schedule) : base(group) { if (group == null) { return; } Specialization = group.Specialization == null ? null : schedule.sDictionaries.Specializations[group.Specialization.GetHashCode()]; YearOfStudy = group.YearOfStudy == null ? null : schedule.sDictionaries.YearsOfStudy[group.YearOfStudy.GetHashCode()]; }
public sGroup(int id, string name, sSpecialization specialization, sYearOfStudy yearOfStudy) : base(id, name) { Specialization = specialization; YearOfStudy = yearOfStudy; }