title: Iterating through a List that is filled with arrays in C#
body: <pre><code>        public List&lt;string[]&gt; parseCSV(string path)
      {
          List&lt;string[]&gt; parsedData = new List&lt;string[]&gt;();
  
          try
          {
              using (StreamReader readFile = new StreamReader(path))
              {
                  string line;
                  string[] row;
                  while ((line = readFile.ReadLine()) != null)
                  {
                      row = line.Split(',');
                      parsedData.Add(row);
                  }
              }
          }
          catch (Exception e)
          {
              MessageBox.Show(e.Message);
          }
  
          return parsedData;
      }
  </code></pre>
  
  <p>I want to use this code to parse a CSV, and this returns a List filled with arrays.  My question is how do I iterate through the arrays within the list if they are of unknown size?</p>
  
  <p>for example:</p>
  
  <pre><code>for (int a=0; a&lt;=CSVList(firstindex).Length;a++)
           for (int a=0; a&lt;=CSVList(secondindex).Length;a++)
  </code></pre>
  
  <p>Something like this would read the first index of the CSVList and then the first array element in it...I think I am just really stuck on the syntax. </p>
  
  <p>Thank you</p>