Exploring C# 8: The Deep Dive
summary
C# 8 adds concrete types and syntax: IAsyncEnumerable<T> and await foreach for async streams (combined yield with suspended execution), nullable reference types with #nullable enable and IDE flow warnings, new pattern-matching forms (switch expressions, property/tuple/positional patterns), System.Range and System.Index with ^-from-end and slice syntax, local static functions to forbid implicit captures, using declarations for scope-based disposal, default interface methods requiring .NET Core 3.0 runtime, and target-typed new expressions; demonstrated in Visual Studio 2019 targeting C# 8 beta.
AI-written summary · about
chapters (10)
- 0:00Introduction and setup
- 2:22Interface and type features
- 7:19Developer perspective
- 8:21Project configuration
- 9:18Async streams
- 14:47Nullable reference types
- 16:50Pattern matching and ranges
- 35:28Local functions
- 35:50Using declarations and wrap-up
- 44:07Final summary and resources
related talks
54mC# 8 and Beyond
56mC# 8 and Beyond
01h 02mWhat's new in C#? Exciting new features in C# 8 0 and 9 0
01h 03mWhere is C# headed?
01h 00mWhat's new in C#? Exciting new features in C# 8.0, 9.0 and 10!
37mC# 8 and Beyond
57mWhat's Coming to C#?
01h 00mLet’s catch up with C#! Exciting new features in C# 9 to C# 14!
