title: Using .Any from System.Linq on array to find a string
body: <p>I'm trying to find out whether a particular cell in my array contains part of a given string. Since arrays don't use .Contains I'm using .Any, but it seems my understanding of how .Any works is too hazy to get it right.</p>
  
  <pre><code>public void ProcessCSV (string typeName) {
  
      for (int y = 0; y &lt; CSVReader.grid.GetUpperBound(1); y++) {
          if (CSVReader.grid[0,y] != null) {
              if ((CSVReader.grid[0,y].Any(s =&gt; typeName.Contains(s)))) {
                    // (add it to a new list)
  </code></pre>
  
  <p>So I'm feeding in strings like "Pork", "Farm" etc. Sometimes it seems to work perfectly, e.g. if typeName is "Farm" I only get back rows from the array that include that string in [0, y]. But at other times, if I'm using Farm, another string or random gibberish, it just returns every single row that has any string at all.</p>
  
  <p>What's actually happening when I call .Any in this way? Is there some alternate method I could use?</p>