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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -