What is new in .NET 7 and C# 11
summary
Lists specific new language and runtime features: generic attributes enable Attribute<T> usage; interpolated strings accept multiline code blocks; list patterns let array slices be captured in pattern matching; raw string literals use triple quotes and repeated $ for braces; u8 UTF-8 literals become ReadOnlySpan<byte> at compile time. Upgrade Assistant migrates Framework apps to modern .NET, gRPC gets JSON transcoding, TAR support lands in BCL, source generators speed regex (50 ns vs 100 ns) and JSON, and INumber enables generic math.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 0:21Generic custom attributes
- 1:25Interpolated string holes
- 2:28List patterns
- 5:19Raw string literals
- 8:10UTF-8 string literals
- 11:20Null check operator removed
- 12:47Upgrade Assistant
- 17:44MAUI overview
- 20:37TAR file system support
- 22:03gRPC JSON transcoding
- 24:59Source generation
- 27:47JSON serialization
- 29:13HTTP client JSON patch
- 30:19Memory cache statistics
- 32:28Microseconds and nanoseconds
- 33:36Generic math support
- 37:07Q&A
