You are on page 1of 4

C# 7 and .Net Core 2.

2
Delegates, Lambdas, and Events

Ateik Alzehla
Content

Review
Collections public class HelloCollection {
public IEnumerator<string> GetEnumerator()
{
yield return "Hello";
 Enumerators. yield return "World";
}
 yield Statement. }

 Enumerators has two Members: MoveNext() and Current;


 foreach iterate elements of collection without knowing how many of them.
 It Uses Enumerators (GetEnumerator).
 Generic Collections:
 List<T>, Dictionary<TK,TV>, LinkedList<T>, Queue<T>, Stack<T>
 Special Collections:
Any questions?

You might also like