Categories
arrays c#

How to convert List to an array of arrays

What is the best way to convert a list into an array of type int[][]?

List<List<int>> lst = new List<List<int>>();

int[][] arrays = lst.Select(a => a.ToArray()).ToArray();