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

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

javascript - Understanding ExtJS Framework Syntax -