I want to convert a nested list, with arbitrarily many nesting levels, of type T to a multi dimentional array of type T
This is exactly like this, but with arbitrarily many levels, which would imply recursion.
How can this be done with C#?
My type is for example
List<List<List<List<int>>>>
and would expect either a int[][][][] or a int[,,,], preferably the latter.
- This is assuming of course every sibling list is of the same size.