What's new in .NET 8 & C# 12
summary
.NET 8 is the new LTS (36 months support) with broad performance work—allocations and hot paths optimized, native AOT now possible (example binaries drop from ~100MB to ~20MB), System.Text.Json adds required members, object‑creation handling and streaming IAsyncEnumerable deserialization, and ASP.NET Core gains HTTP/3, rate limiting, short‑circuit routes and keyed services for minimal APIs. C# 12 brings collection expressions and the spread operator, primary constructors for classes/records, a TimeProvider abstraction with a FakeTimeProvider for deterministic tests, Random.Shared, interceptors for source generators, and several small lambda/typing conveniences.
AI-written summary · about
chapters (21)
- 0:00Welcome
- 1:53Upgrade from .NET Framework
- 3:40Key .NET 8 improvements
- 8:58Zero-allocation with Span
- 13:36Native AOT benefits
- 14:58Frozen collections
- 15:40System.Text.Json improvements
- 19:38Async enumerables in HTTP
- 21:45Polymorphic JSON serialization
- 22:06Time abstraction for testing
- 26:39Randomness helpers
- 27:22ASP.NET Core updates
- 28:24Keyed services
- 30:09Rate limiting in ASP.NET Core
- 34:29Blazor updates
- 35:11.NET MAUI improvements
- 37:04C# 12 collection expressions
- 40:11Primary constructors in C# 12
- 45:31C# 12 interceptors
- 51:04Performance and future
- 56:42Q&A
related talks
58mWhat's new in .NET 8 & C# 12
01h 01mWhat's coming in .NET 8 & C# 12
01h 03mWhat's new in .NET 9 & C# 13
01h 04mOur favorite things in .NET 8
01h 01mWhat's new in .NET 9 & C# 13
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 01mAn in-depth look at the new features in C# 8.0 and .NET Core 3.
