C# 8
summary
C# 8 preview shows concrete changes: nullable reference types flip the default to non-nullable by warning-only opt‑in and use ? annotations that travel across assemblies, plus a null‑forgiving postfix operator (!) to suppress warnings; flow analysis recognizes common null checks but has thread/race corner cases and an attribute language for special method null behavior. Pattern matching gains person switch { ... } switch expressions, property/positional/deconstruct patterns, and exhaustiveness checks. Indexes and ranges use ^ and .. for from-end indexing and slicing, useful with Span<T>.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 4:12Strings
- 4:37Middle Name
- 5:12Length
- 13:49Checking for Null
- 18:54No Ability
- 24:48Patterns
- 35:14Recursive Patterns
- 41:08Null Patterns
- 45:47Deconstruction
- 50:44Variable Declarations
- 52:31Indexes and Ranges
- 54:14Range Expressions
- 57:05Live Code
related talks
01h 00mC# 8 and Beyond
43mWhat’s coming in C# 8.0?
13mWhat's New in C# 8.0
59mLet’s catch up with C#! Exciting new features in C# 9, 10, 11, 12 and 13!
59mNullability in C# 8.0
55mLet’s catch up with C#! Exciting new features in C# 9, 10, 11 and 12!
59mWhat's new in C#? Exciting new features in C# 9, 10 and 11!
01h 00mWhat's new in C#? Exciting new features in C# 8.0, 9.0 and 10!
