Accessing elements of List<List<string>>
Posted
by shiv09
on Stack Overflow
See other posts from Stack Overflow
or by shiv09
Published on 2010-04-16T04:59:36Z
Indexed on
2010/04/16
5:03 UTC
Read the original article
Hit count: 714
c#
Hello Friends........... Can anyone let me know how can access an element of a list that has been added to a list of list............. I'll mention the code............ List str = new List(); List> stud = new List>();
A method has been defined that inserts data into str and after the method gets over......... stud.Add(str);
The method and stud.Add(str) is on a button click...... so, each time str contains different data.......
the problem is I want to search in whole of stud i.e. all the str created, whether str[0]==textBox3.Text;
I'm confused in the For loops...how to reach to all the str[0] in stud to verify the condition...................
© Stack Overflow or respective owner