User:Sgamil

From MediaWiki.org
Jump to navigation Jump to search

C# Programmer

How to iterate a list

using System.Collections.Generic;

public class Demo

{

public void IterateListDemo()

{

  var Lst = new List<string>( );

            foreach(var item in Lst)
            {
                Console.WriteLine( item);

           }

}

}