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