What's new in C# 11 now with less controversy!!
summary
C# 11 demos run on Visual Studio 2022 preview and targets .NET 7 with SharpLab decompilation; examples show raw string literals (triple quotes, interpolation with multiple $ and preserved indentation) and UTF‑8 literals producing ReadOnlySpan<byte> not string, saving allocations. Pattern examples include list patterns for path parsing and subarray capture. New compile‑time features are required members (required keyword, SetsRequiredMembers attribute, emitted attributes for older compilers) and static abstract interface members that enable generic math and parseable factories.
AI-written summary · about
chapters (7)
- 0:00Introduction to C# 11
- 2:04Raw string literals
- 9:15List patterns
- 16:50UTF-8 string literals
- 20:06Required members
- 31:23Static abstract interfaces
- 41:09Miscellaneous features
related talks
46mC# Goes to 11
59mWhat's new in C#? Exciting new features in C# 9, 10 and 11!
01h 00mWhat's new in C#? - Exciting new features in C# 9, 10 and 11!
55mLet’s catch up with C#! Exciting new features in C# 9, 10, 11 and 12!
59mLet’s catch up with C#! Exciting new features in C# 9, 10, 11, 12 and 13!
59mLet’s catch up with C#! Exciting new features in C# 9, 10, 11, 12 and 13!
48mBe Sharp with New Features in C#
01h 03mWhat's new in C#? Exciting new features in C# 8.0, 9.0 and 10!
