English
Topic 11. Structures, records, enumerations, and tuples
Goal: become familiar with structures, records, enumerations, and tuples in C#; learn to choose between a class, a structure, and a record, to use value equality and with expressions, to parse and validate enumeration values, to apply flag enumerations, and to return several values as tuples and deconstruct them.
Lecture contents
- Structures — Structures
- Records — Records
- Enumerations and tuples — Enumerations · Tuples
- Examples and common mistakes — Example programs · Common mistakes