English
Topic 13. Generics and .NET collections
Goal: become familiar with generics and .NET collections; learn to declare generic methods and classes with type parameter constraints, to choose a collection according to the required operations, and to use List<T>, Dictionary<TKey, TValue>, HashSet<T>, Queue<T>, Stack<T>, PriorityQueue, and iterators.
Lecture contents
- Generic methods and classes — Why generics are needed · Generic methods · Generic classes and interfaces
- .NET collections — .NET collections
- Iterators — Iterators
- Examples and common mistakes — Example programs · Common mistakes