title: Checking the size of a list of arrays
body: <p>I have a list of string arrays:</p>
  
  <pre><code>List&lt;string[]&gt; parsedRaw = new List&lt;string[]&gt;();
  </code></pre>
  
  <p>This list contains lines read in from a CSV, where parsedRaw[3][5] would be the fifth item read off the third line of the CSV.</p>
  
  <p>I know that I can find the number of rows in the list with:</p>
  
  <pre><code>parsedRaw.Count
  </code></pre>
  
  <p>But, given a row, how can I find the number of elements in that row?  I'm trying to implement a test before entering a loop to read from the list, in order to avoid an "Index was outside the bounds of the array" error, where the loop is:</p>
  
  <pre><code>for (k = 0; k &lt; nBytes; k++)
  {
      TheseBytes[k] = (byte)parsedRaw[i][StartInt + k];
  }
  </code></pre>
  
  <p>I'm encountering the error on a row in the CSV that has fewer elements than the others.  Before entering this loop, I need to check whether parsedRaw[i] has at least "StartInt + nBytes" elements.</p>
  
  <p>Thanks for any suggestions!</p>