I have a List<List<string>> information; that is full of 3 other lists. I need to be able to do three separate things on each of these sublists. How do i access each sublist?
For more clarity the lists were added to the main list like this
infomration.Add(sublist1);//where each sublist is a List<string> and information is a <List<List<string>>
infomration.Add(sublist2);
infomration.Add(sublist3);
reutrn information;
You wish to perform 3 separate operations on the 3 elements (lists) in your list. Since
Listsare indexed, why not just access them this way?