title: C# LINQ select from list of arrays of strings
body: <p>I have this data</p>
  <p><a href="https://i.stack.imgur.com/8ISgx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8ISgx.png" alt="enter image description here" /></a></p>
  <p>which is retained in a list of arrays of strings: <code>List&lt;string[]&gt; arrData = new List&lt;string[]&gt;();</code>.
  The list is filled with the following code:</p>
  <pre><code>int columnsCount =4;
  int rowsCount = 6;
  for (int j = 0; j &lt; columnsCount; j++)
  {
      string[] columnData = new string[rowsCount];
      for (int i = 0; i &lt; rowsCount; i++)
          columnData[i] = csv[i][j];
      arrData.Add(columnData);
  }
  </code></pre>
  <p>csv[i][j] gives the value for r1c1 etc., so in the end the list has 4 arrays elements, each array having 6 values.</p>
  <ol>
  <li>How can I use LINQ to select the yellow rows, meaning that have &quot;a&quot; in the first array, &quot;g&quot; in the second one and &quot;m&quot; in the third?</li>
  <li>How can I use LINQ to filter by a list of values in one column (meaning select all rows with &quot;a&quot; or &quot;b&quot; in first column)?</li>
  </ol>
  <p>I can alter the code and create a list of lists / dictionaries / whatever is more suitable.</p>