How to: Create an Iterator Block for a List of Integers (C#)
Full Name:
How to: Create an Iterator Block for a List of Integers (C#)
Short Name:
How to: Create an Iterator Block for a List of Integers (C#)
Type of Entity:
C#
Abstract:
In this example, an array of integers is used to build the list SampleCollection. A for loop iterates through the collection and yields the value of each item. Then a foreach loop is used to display the items of the collection.
MSDN Source URL:
http://msdn2.microsoft.com/8b1xzat2.aspx