title: simple LINQ / Lambda query not compiling
body: <p>I'm new to linq and am having a real hard time grasping it.</p>
  
  <p>My code is an linq that is supposed to filter all students that are born prior to 1984 from  a class Allstudents. Sorry about the snippets, my first time here.</p>
  
  <pre><code>private void Linq2()
      {
          Header("Linq2");
  
                      var Student = from B in TestData.AllStudents
                        where TestData.AllStudents.Where(x =&gt; x.Birthday.Year &gt; 1984)
                        select B;
  
      }
  
  
  
   public static List&lt;Student&gt; AllStudents
          {
              get
              {
                  return new List&lt;Student&gt;
                  {
                      new Student {Id=1, FirstName="Lisa", Birthday=new DateTime(1980, 1, 1), FavoriteSubject="Geography", NumberOfOwnedBooks=10},
                      new Student {Id=2, FirstName="Ali", Birthday=new DateTime(1985, 2, 2), FavoriteSubject="Geography", NumberOfOwnedBooks=10},
                      new Student {Id=4, FirstName="George", Birthday=new DateTime(1960, 3, 3), FavoriteSubject="Mathematics", NumberOfOwnedBooks=20},
                      new Student {Id=5, FirstName="Susan", Birthday = new DateTime(1960, 3, 3), FavoriteSubject = "Mathematics", NumberOfOwnedBooks = 30 },
                      new Student {Id=3, FirstName="Britney", Birthday=new DateTime(1980, 1, 1), FavoriteSubject="Mathematics", NumberOfOwnedBooks=40},
                  };
              }
          }
  </code></pre>
  
  <p>Error   CS0029  Cannot implicitly convert type 'System.Collections.Generic.IEnumerable' to 'bool'   </p>
  
  <p>Error   CS1662  Cannot convert query expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type<br>
  edited for code snippets</p>