title: How to check if two values exist in a list using linq in c#
body: <p>I have a linq statement that looks like this:</p>
  
  <pre><code>if(items.Any(x =&gt; x.CustomerID == 4))
  {
  
  }
  </code></pre>
  
  <p>however, I want to find an object in my list of items that not only contains the customerID of 4 but also a designID of 6.</p>
  
  <p>I know I can do this:</p>
  
  <pre><code>if(items.Any(x =&gt; x.CustomerID == 4) &amp;&amp; items.Any(x =&gt; x.DesignID == 6))
  {
  
  }
  </code></pre>
  
  <p>but this may not work since I need to find the <strong>same</strong> object that has both these values (this would check individually if these exist). Is there a way to combine these?</p>