I have the following requirement
I have a Employee class:
public class Employee
{
public int ID{get; set;}
public string EmpFName{get; set;}
public string EmpLName { get; set; }
}
I want to do something like this when creating values
var Emp = new List<Employee>[]{
new Employee{id=1, EmpFname="matt", EmpLName="Cook"},
new Employee{id=2, EmpFname="mary", EmpLname="John"}
});
How can i do this?