title: LINQ contains between 2 lists
body: <p>I have a string List and a supplier <code>List&lt;supplier&gt;</code>.</p>
  
  <p>string list contains some searched items and supplier list contains a list of supplier object.
  Now I need to find all the supplier names that matches with any of the items in the string <code>List&lt;string&gt;</code>.</p>
  
  <p>this is one of my failed attempts..</p>
  
  <pre><code>var query = some join with the supplier table.
  query = query.where(k=&gt;stringlist.contains(k.companyname)).select (...).tolist();
  </code></pre>
  
  <p>any idea how to do that??</p>
  
  <h2>EDIT:</h2>
  
  <p>May be my question is not clear enough...I need to find a list of suppliers(not only names,the whole object) where suppliers names matches with the any items in the string list.</p>
  
  <p>If I do </p>
  
  <pre><code>query = query.where(k=&gt;k.companyname.contains("any_string")).select (...).tolist();
  </code></pre>
  
  <p>it works. but this is not my requirement.
  My requirement is a list of string not a single string.</p>