public void ExchangeStudents(GroupWithQuestionnaires other, int studentId) { var stud = other.students.ElementAt(studentId); other.students.RemoveAt(studentId); other.questionnaires.RemoveAt(studentId); this.students.Add(stud); this.questionnaires.Add(other.questionnaires.ElementAt(studentId)); }
public GroupWithQuestionnaires(GroupWithQuestionnaires other) { foreach (var s in other.students) { students.Add(s); } foreach (var t in other.techs) { techs.Add(t); } foreach (var q in other.questionnaires) { questionnaires.Add(q); } }