What's New in C# 8.0
summary
C# 8.0 introduces opt‑in nullable reference types that make ordinary references nonnullable by default, produce compiler warnings in existing code, and track null checks to prevent NullReferenceException; adds asynchronous streams via IAsyncEnumerable and await foreach so methods can yield items over time and async Main can await them; adds range and index syntax for array slicing, recursive patterns and switch expressions for concise pattern matching, target‑typed new, and default interface implementations for nonbreaking API evolution.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 0:33Nullable reference types
- 5:34Async streams
- 7:48Array range syntax
- 8:52Patterns and expressions
- 11:25Implicitly typed new
- 11:55Default interface members
related talks
43mWhat’s coming in C# 8.0?
01h 00mWhat's new in C#? Exciting new features in C# 8.0, 9.0 and 10!
59mWhat's new in C#? Exciting new features in C# 8.0, 9.0 and 10!
01h 03mWhat's new in C#? Exciting new features in C# 8.0, 9.0 and 10!
01h 01mC# 8
01h 00mC# 8 and Beyond
01h 00mWhat's new in C#? - Exciting new features in C# 9, 10 and 11!
59mNullability in C# 8.0
