title: Linq Expressing a query as a Lambda query
body: <p>I have created a query that only shows students that have a date of birth that is less than 1990. I am trying to express this same query as a Lambda query but do not know how to go about it. This is my code so far: </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  
  namespace ConsoleApplication1
  {
  
  class Student
  {
      public string FirstName { get; set; }
      public string LastName { get; set; }
      public int ID { get; set; }
      public DateTime DateOfBirth { get; set; }
  
  }
  class LINQ2
  {
      static void Main()
      {
  
          IEnumerable&lt;Student&gt; students = new List&lt;Student&gt;()
          {
              new Student {FirstName = "Jim", LastName = "Smith", DateOfBirth = new DateTime(1990, 5, 21), ID = 1},
              new Student {FirstName = "Diane", LastName = "Sawyer", DateOfBirth = new DateTime(1992, 11, 1), ID = 2},
              new Student {FirstName = "Steve", LastName = "Thomas", DateOfBirth = new DateTime(1994, 4, 4), ID = 3},
              new Student {FirstName = "Pablo", LastName = "Dicaz", DateOfBirth = new DateTime(1973, 3, 30), ID = 4},
              new Student {FirstName = "Hannu", LastName = "Korppi", DateOfBirth = new DateTime(1988, 6, 16), ID = 5},
              new Student {FirstName = "Marie", LastName = "St. Claude", DateOfBirth = new DateTime(1982, 1, 19), ID = 6}
          };
  
          IEnumerable&lt;Student&gt; query = from s in students
                                       where s.DateOfBirth.Year &lt; 1990
                                       orderby s.FirstName
                                       select s;
  
  
          foreach (Student stud in query)
          {
              Console.WriteLine(stud.FirstName);
              Console.ReadLine();  
          }
      }
  }
  }
  </code></pre>