title: List<string[]> determine max length by Linq
body: <p>I have the following structure</p>
  
  <pre><code>List&lt;string[]&gt; sList = new List&lt;string[]&gt;() {
      new[] { "x", "xxx", "xxxx" },  //1,3,4
      new[] { "x", "xx", "xx" },     //1,2,2
      new[] { "xxxxxx", "xx", "xx" } //6,2,2
  };
  </code></pre>
  
  <p>and I need to determine the maximum <code>string.length</code> of the items by column</p>
  
  <p>In this example the <strong>expected result</strong> should be: </p>
  
  <pre><code>List&lt;int&gt; Result = new List&lt;int&gt;() { 6, 3, 4 };
  </code></pre>
  
  <p>Is there a easy Linq-approach?</p>
  
  <p><strong>my effort</strong> (working but not using Linq):</p>
  
  <pre><code>List&lt;int&gt; Result = new List&lt;int&gt;();
  foreach (string[] line in Table)
  {
      for (int i = 0; i &lt; line.Length; i++)
      {
          if (Result.Count &gt; i)
          {
              if (Result[i] &lt; line[i].Length)
              {
                  Result[i] = line[i].Length;
              }
          }
          else
          {
              Result.Insert(i, line[i].Length);
          }
      }
  }
  </code></pre>
  
  <p>the number of rows/columns is dynamic but each row has the same number of columns.</p>