foreach in List<object> in c# -


[collection of list objects]

first object list

i have list<object> 26 rows. wanted write foreach fetch values. tried diff ways that. no luck. please me. please check attached images

unfortunately, i'm not sure you're asking here sample code started. create list filled string value each object in list.

list<string> stringlist = new list<string>();     foreach(object o in objectlist)   {       string s;       s= o.tostring();       stringlist.add(s);   } 

as it's been mentioned, take @ loops , conditional statements learn more them/how use them.

hope helps.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -