C# 7
summary
Overview of C# 7 language features and practical caveats with examples and tools: value tuples via System.ValueTuple NuGet package replace System.Tuple for low‑overhead pairs, support named elements (up to seven plus a Rest) but names are compiler only so use cautiously and keep tuples internal; deconstruction uses a deconstruct method (including extension methods) and introduces discards with underscore; new ValueTask<T> enables custom async return types; out variables, pattern matching in is and switch, ref locals/returns, throw expressions, binary literals, and local functions that avoid heap allocations by using a compiler generated struct.
AI-written summary · about
chapters (16)
- 0:00Intro
- 5:33tuples
- 14:44minmax
- 18:04names
- 20:19variables
- 24:26implicit conversion
- 26:07identity conversion
- 33:24couple deconstruction
- 35:52deconstruct
- 38:55deconstruction
- 45:30Out variables
- 47:27definite assignment
- 49:10pattern matching
- 51:19types of patterns
- 53:52patterns in switch statements
- 57:18throw expressions








