How can I get the type of the inner-most elements of a multidimensional array?
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"
I’d like to get the innermost element type regardless of the number of dimensions of the array (Rank).
Use
GetElementType():