public Contact
ContactInfo(EmployeeType WhoShouldICall)
{ Contact cntct = new Contact(); switch(WhoShouldICall) { case EmployeeType.President: case EmployeeType.Secretary: case EmployeeType.SalesGuy: case EmployeeType.Programmer: cntct.Name = "Bill King"; cntct.Phone = "716-949-4223"; cntct.Email = "billking3@verizon.net"; break; } return cntct; } public enum EmployeeType { President, Secretary, SalesGuy, Programmer } |
|