What's new in C# 11
summary
C# 11 adds concrete changes with examples and compiler demos: raw string literals let you embed content without escapes by using n+1 quotes, ignore the initial newline and trim indentation; list patterns compile into length/index checks and support a single range capture; utf‑8 literals produce ReadOnlySpan<byte>; required members enforce init-time non‑null with SetsRequiredMembers to silence constructors; static abstract members enable generic math and async factory patterns; the controversial parameter null checking pulled feature is removed after community backlash; demos use Roslyn, Visual Studio and SharpLab.
AI-written summary · about
chapters (9)
- 0:00Start
- 0:05What's new in C#11
- 0:44Parameter null checking
- 1:51Raw string literals
- 11:49List patterns
- 21:06UTF-8 string literals
- 27:49Static Abstract Interface Members
- 35:02Generic Attributes
- 35:54Auto default structs
related talks
01h 00mLet’s catch up with C#! Exciting new features in C# 9 to C# 14!
01h 06mThe top 10 best new features in C# version 6 to 9
37mC# 8 and Beyond
42mWhat's New in C# 14 and .NET 10
56mC# 8 and Beyond
54mC# 8 and Beyond
01h 06mThe State of C# - What Have I Missed?
01h 02mWhat's new in C#? Exciting new features in C# 8 0 and 9 0
