title: C# Get the type of a multidimensional array
body: <p>How can I get the type of the inner-most elements of a multidimensional array?</p>
  
  <pre><code>var qq = new int[2,3]{{1,2,3}, {1,2,4}};
  var t = qq.GetType().ToString();//is "System.Int32[,]"
  var t2 = ??; // should be "System.Int32"
  </code></pre>
  
  <p>I'd like to get the innermost element type regardless of the number of dimensions of the array (Rank).</p>