title: How to check if String contains any of the strings in List/Array
body: <p>I currently have a an ASP.Net Website. This website retrieves RSS-Feeds from different Sources and outputs its own <code>RSS-Feed</code>. But is the article contains some word they must be 'blacked out' (Censorship as you might say). The words are contained in a <code>blacklist</code> managed by that ASP.Net Website.</p>
  
  <p>My current solution:</p>
  
  <pre><code>foreach (SyndicationItem rssItem in syndFeed.Items.OrderByDescending(x =&gt; x.PublishDate).ToList())
  {
      //if is on blacklist
      bool isValid = true;
      foreach (String blacklistItem in MyBlacklist)
      {
          if(rssItem.Title.Text.contains(blacklistItem))
              isValid = false;
          if(rssItem.Summary.Text.contains(blacklistItem))
              isValid = false;
      }
  
      if (isValid)
      {
          writer.WriteStartElement("item");
  
          //Write Elements
          writer.WriteElementString("PubDate", rssItem.PublishDate.ToString("yyyy-MM-dd HH:mm:ss"));
          writer.WriteElementString("title", rssItem.Title.Text);
          writer.WriteElementString("description", rssItem.Summary.Text);
          writer.WriteElementString("link", rssItem.Id.ToString());
  
          writer.WriteEndElement();
      }
  }
  </code></pre>
  
  <p><strong>Question:</strong> Is there a more performant way to do this search? How can i write the following code more simple using LINQ/ Any other Stringoperations?</p>
  
  <pre><code>    foreach (String blacklistItem in MyBlacklist)
      {
          if(rssItem.Title.Text.contains(blacklistItem))
              isValid = false;
          if(rssItem.Summary.Text.contains(blacklistItem))
              isValid = false;
      }
  </code></pre>
  
  <p>Based on the following examples from Java:</p>
  
  <p><a href="https://stackoverflow.com/questions/17703454/checking-if-a-string-contains-any-of-the-strings-in-an-array">Checking if a string contains any of the strings in an array</a></p>
  
  <p><a href="https://stackoverflow.com/questions/6881979/how-to-check-string-with-array-of-strings-in-java">How to check string with array of strings in java?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/8992100/test-if-a-string-contains-any-of-the-strings-from-an-array">Test if a string contains any of the strings from an array</a></p>