foreach loop in c#

preview_player
Показать описание
The foreach statement repeats a group of embedded statements for each element in an array or an object collection that implements the System.Collections.IEnumerable or System.Collections.Generic.IEnumerable T interface. The foreach statement is used to iterate through the collection to get the information that you want, but can not be used to add or remove items from the source collection to avoid unpredictable side effects. If you need to add or remove items from the source collection, use a for loop.

-------------
May be you like this
--------------
Our channel:

KnockoutJs Playlist:
Wcf playlist :

Wcf restful playlist :

c# playlist:

google maps playlist:

Рекомендации по теме