Is there a concise syntax for intializing lists of lists in C#?
I tried
new List<List<int>>{
{1,2,3},
{4,5},
{6,7,8,9}
};
But I get an error 'No overload for method 'Add' takes 3 arguments'
Edit: I know about the long syntax
new List<List<int>>{
new List<int> {1,2,3},
new List<int> {4,5},
new List<int> {6,7,8,9}
};
I was just searching for something pithier.