Convert List<int>to List<List<int>>

.net, c#, collections, list

Solution

You can do it like this:

List<List<int>> superElement = new List<List<int>>();
superElement.Add(element);

Problem

Can i convert `List<int>`to `List<List<int>>` in c#? When I use such construction ``` List<int>element=new List<int>(); List<List<int>>superElement= new List<List<int>>(element); ``` I get a fault,but can I do this in another way?

Original source