Calling Item From List(T) in C# -


how can call item has been added to:

list<string> type = new list<string>(); 

use add method add string item list.

   type.add(item); 

using for-each can retrieve values inside list

foreach(string value in type) {     if(value=="something")     {         //dosomething     } } 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -