- 1
List of lists
I need a code that creates a list everytime the user inputs something specific, I want to have any number of different lists each with its own elements thanks
1 Respuesta
0
What specifically? If it's just string input you would have to explicitly pass the string datatype into the list. After that it's pretty simple to make a list of lists.
var List<string> ListOne = new List<string>();
var List<List<string>> ListTwo = new List<List<string>>();
Then you would get input from the user and add it to each list respectively.
I'd use more example code, but I'm not exactly sure what it is you're asking.