0

How to fetch item from list in c#?

In c# list contain values inside the {{val1,val2}}how can I get val1 and val2 from list

29th Jun 2018, 11:48 AM
Vijaya Priya Viji
Vijaya Priya Viji - avatar
4 Respostas
+ 1
[0][0 or 1] The first index selects an element from the list (the array in this case) second selects the element in that array (val1 or val2)
29th Jun 2018, 12:09 PM
TurtleShell
TurtleShell - avatar
+ 1
So name[0] is a 2D array? var vals = int[2]; vals = name[0][0][0];
29th Jun 2018, 12:48 PM
TurtleShell
TurtleShell - avatar
0
array list name[0]has element like below {{val1,valu2}} i want to fetch both val1 and valu2
29th Jun 2018, 12:43 PM
Vijaya Priya Viji
Vijaya Priya Viji - avatar
0
i got it
30th Jun 2018, 6:25 AM
Vijaya Priya Viji
Vijaya Priya Viji - avatar