예제 #1
0
        // Methods

        //Add a consultant under the manager
        private void AddConsultant(Consultant Consultant)
        {
            this.ConsultantList.Add(Consultant);
        }
예제 #2
0
        // 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);
        }