Contains information about new language features, such as query expressions, collection initializers, lambda expressions, anonymous types, auto-implemented properties, partial methods, and more. Also points to information about what's new in the Visual C# IDE.
Provides an example of an array of integers that 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.
Provides an example where a generic class Stack<T> implements a generic interface IEnumerator<T>. An array of the type T is declared and assigned values by using the method Push. In the GetEnumerator method, the values of the array are returned by using the yield return statement.