Understanding iterates through foreach loop

Amatya
Posted by Amatya under C# category on | Points: 40 | Views : 1314
Understanding iterates through foreach loop

var dnf= new List<string>() { "Dot", "Net", "Funda" };
foreach (string name in dnf)
{
Console.WriteLine(name);
}



This will give the result
Dot
Net
Funda

Thanks
Amatya

Comments or Responses

Login to post response