title: Lambda Expression: == vs. .Equals()
body: <p>This is a purely academic question, but what's the difference between using == and .Equals within a lambda expression and which one is preferred? </p>
  
  <p><strong>Code examples:</strong></p>
  
  <pre><code>int categoryId = -1;
  listOfCategories.FindAll(o =&gt; o.CategoryId == categoryId);
  </code></pre>
  
  <p><strong>or</strong></p>
  
  <pre><code>int categoryId = -1; 
  listOfCategories.FindAll(o =&gt; o.CategoryId.Equals(categoryId));
  </code></pre>