I have created a list:
List<Employee> employees = new List<Employee();
I would like to achieve this:
Employee e1 = new Employee(Job.Employee, "Name", "C Sharp", "Oracle", "SQL");
I currently have this:
Employee e1 = new Employee(Job.Employee, "Name", Skills.CSharp);
This is the code inside the Employee class
public enum Job { Employee, Supervisor, Administrator };
public enum Skills {CSharp, SQL, PHP, Javascript, Web, Python, Oracle, CPlus, Perl };
protected Job job;
protected String employeeName;
protected String employeeName;
public Job Job
{
get { return job; }
protected set { job = value; }
}
public String EmployeeName
{
get { return employeeName; }
protected set { employeeName = value; }
}
public Skills Skills
{
get {return skills; }
}
I want to be able to enter as many 'skills' as I want as currently, only one skill can be entered in the Employee e1 as I have used a enum.
How would I put an array of 'skills' in the list/constructor?