What's new in C#? Exciting new features in C# 8 0 and 9 0
summary
C# 8–10 add concrete features and runtime requirements: nullable reference types make the compiler warn on potential nulls to reduce NullReferenceExceptions, IAsyncEnumerable with await foreach plus yield enable true asynchronous streaming of lines from a file, and record types give immutable primary-constructor objects with value equality and a built‑in deconstruct and with expression. Default interface implementations let libraries add methods without breaking users. Use Visual Studio 2019/2022 targeting .NET Core 3.0 / .NET 5 / .NET 6 depending on the C# version.
AI-written summary · about
chapters (11)
- 0:00Start
- 6:30Deconstruct an object
- 8:00Tuples & Deconstruction
- 9:17Asynchronous Main
- 16:21Default Interface Implementations
- 17:50Shared Libraries
- 41:10Matching a type & attribute
- 42:52Pattern matching: Switch expression
- 45:22Pattern matching: Property pattern
- 45:51Add a new project
- 53:19Pattern matching: Tuple pattern








