title: using the equals keyword in linq
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2273600/lambda-expression-vs-equals">Lambda Expression: == vs. .Equals()</a>  </p>
  </blockquote>
  
  
  
  <p>Hi,</p>
  
  <p>I use a lot the keyword Equals to compare variables and other stuff.</p>
  
  <p>but</p>
  
  <pre><code>wines = wines.Where(d =&gt; d.Region.Equals(paramRegion)).ToList();
  </code></pre>
  
  <p>return an error at runtime when in the data Region is NULL</p>
  
  <p>I had to use the code </p>
  
  <pre><code>wines = wines.Where(d =&gt; d.Region == paramRegion).ToList();
  </code></pre>
  
  <p>to get rid of the error.</p>
  
  <p>Any ideas why this raises an error?</p>
  
  <p>Thanks.</p>