title: Linq query a string array in c# if contains either of two values?
body: <p>I have an array of strings </p>
  
  <pre><code>string[] tmp = foo();
  </code></pre>
  
  <p>If NONE of the strings in foo contain either "bar" or "baz" I want to execute some code.
  Is this the proper way to query this object?</p>
  
  <pre><code>if(!tmp.Any(p =&gt; p.ToLower().Contains("bar") || p.ToLower().Contains("baz"))
   doSomething(); 
  </code></pre>
  
  <p>The || seems silly. Should I be using a regular expression here or is there an even better way to be doing this? ***Also note the values in tmp are like <code>"bar=someValue"</code> like a query string. This code works ok but I'm certain it can written better. Thanks for any tips of feedback.</p>