TechyMedia

A .NET Technology blog | .NET,C# Progamming,C# tutorials,WPF WCF|Software Engineer

NAVIGATION - SEARCH

Iterators And Enumeration in C#

Collections(Array,List,ArrayList etc.) and traversing through collections are inevitable in software develoment. An iterator provides a means to loop through items in a collection.The iterator tells the for each loop in what sequence you get the elements.The sequence of elements is given by the implementations of the IEnumerator interface.

Collections(Array,List,Arraylist etc.) and traversing through collections are inevitable in software development. An iterator provides a means to loop through some items.The iterator tells the for each loop in what sequence you get the elements.The sequence of elements is given by the implementations of the IEnumerator interface.

The concept of iterators came from the famous Iterator pattern.

 

 

Generics

 

Pingbacks and trackbacks (1)+

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading