// Methods //Add a consultant under the manager private void AddConsultant(Consultant Consultant) { this.ConsultantList.Add(Consultant); }
// Method public void AddConsultant(Consultant consultant) { //Assert that consultant is not already contained in Consultantdict //BEWARE: Currently Shallow copy of consultant object=> can create problems!!! this.Consultantdict.Add(consultant.GetFirstname() + consultant.GetLastname(), consultant); }