title: difference between select and where in LINQ
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1212746/linq-what-is-the-difference-between-select-and-where">Linq: What is the difference between Select and Where</a>  </p>
  </blockquote>
  
  
  
  <p>What's the difference between </p>
  
  <pre><code>var a = Doc.Document.Where(n =&gt; n.Id == id).SingleOrDefault(); 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>var b = Doc.Document.Select(n =&gt; n.Id == id).SingleOrDefault();
  </code></pre>
  
  <p><strong>Why variable b is a boolean ?</strong></p>
  
  <p>Sorry about my ignorance, I am new to LINQ.</p>