Our favorite things in .NET 8
summary
A fast tour of concrete .NET 8 changes: C# adds primary constructors and smarter target-typed collection inference that lets the compiler create the most efficient concrete or stackalloc-backed type; a new time provider API lets tests advance time deterministically; a data-aware server GC mode dynamically shrinks heaps so web APIs drop memory use from gigabytes to a few hundred MB under light load; unsafe accessor attributes let generated code access private fields even with trimming/AOT; native container publish and MSBuild JSON output produce images without Docker.
AI-written summary · about
chapters (18)
- 0:00Introduction to .NET 8
- 1:54Primary constructors in C# 12
- 8:22Collection expressions and target typing
- 15:22Default lambda parameters in C# 12
- 18:10Garbage collection adaptation mode
- 21:40Unsafe accessors for reflection
- 26:20Time provider for testing
- 31:00Random class shuffle and get items
- 33:04Frozen collections for lookups
- 34:29Composite format for strings
- 39:16Search values for text
- 43:27UTF-8 span formatting
- 45:34Keyed services in DI
- 50:07Source generation for config
- 53:00Enhanced IHostedLifecycleService
- 55:06MSBuild JSON output and containers
- 59:51Debugging visualizers in .NET 8
- 1:01:57Form binding in ASP.NET Core
related talks
59mWhat's new in .NET 8 & C# 12
58mWhat's new in .NET 8 & C# 12
01h 01mWhat's coming in .NET 8 & C# 12
01h 01mAn in-depth look at the new features in C# 8.0 and .NET Core 3.
01h 01mWhat's new in .NET 9 & C# 13
01h 03mWhat's new in .NET 9 & C# 13
59mWhat's new in C#? Exciting new features in C# 8.0, 9.0 and 10!
55mLet’s catch up with C#! Exciting new features in C# 9, 10, 11 and 12!
