title: What does the e => new EmployeeSummary { Employee = e } means?
body: <p>My friend gave me this code and I tried to understand what it does.</p>
  
  <p>I understand that the function returns overall number of pending work tickets for all employees in the repository, but there is a single line of code that I did not understand and it's the line of:</p>
  
  <pre><code>var employees = employeeRepository.All.Select(e =&gt; new EmployeeSummary { Employee = e }).ToList();
  </code></pre>
  
  <p>I understand that in the end it makes a list of an employees but the <code>e=&gt; new EmployeeSymmary</code> I do not understand </p>
  
  <p>Please anyone can help?</p>
  
  <p>The code:</p>
  
  <pre><code>public int GetTicketsForEmployees()
  {
      EmployeeRepository employeeRepository = new EmployeeRepository();
      ServiceTicketsRepository serviceTicketRepository = new ServiceTicketRepository();
      
      int ticketscount = 0;
      var employees = employeeRepository.All.Select(e =&gt; new EmployeeSummary { Employee = e }).ToList();
  
      foreach (var employee in employees) {
          var tickets = serviceTicketRepository.AllIncluding(t =&gt; t.Customer).Where(t =&gt; t.AssignedToID ==employee.Employee.ID).ToList();
          ticketscount += tickets.Count();
      }
  
      return ticketscount;
  }
  </code></pre>