0

Can I make a List where members are other Lists?

4th Jan 2017, 9:00 PM
Andrea
Andrea - avatar
2 Answers
+ 3
Yes you can. The definition can be something like that: List<List<x>> myList = new List<List<x>>(); where 'x' is the List type of the inside.
4th Jan 2017, 9:31 PM
Nahuel
Nahuel - avatar
+ 1
Sure, might get a bit 'messy' but would definitely work.
4th Jan 2017, 9:11 PM
Robobrine
Robobrine - avatar