Archive | July, 2010

.net Training in bangalore for C# basics For and Foreach loop

In C# for loop and for each gives flexibility in iterating the collections.But you should be careful in selecting for or foreach.For each is best suitable for read only collections i.e when you want only to get the values from collections this is the best choice and gives high performence for read only collections.if you want to update the collection then the choice is for loop.

Article written for Palle Technologies.

Posted in C# FAQ1 Comment