The top 10 best new features in C# version 6 to 9
summary
A concise run‑down of the top 10 C# 6–9 changes with concrete effects: string interpolation replaces messy concatenation; out var and inline deconstruction remove predeclared temporaries; default interface methods let interfaces ship a fallback implementation; discards use _ and combine with throw expressions; null‑conditional ?., null‑coalescing assignment ??= and nullable reference types (enable in the csproj; compile‑time warnings) tighten null handling; named/value tuples and pattern matching + switch expressions simplify multi‑value returns; record types generate immutable classes, equality and with‑expressions automatically.
AI-written summary · about
chapters (21)
- 0:00Intro
- 1:13I want to do a talk about the best new C# features...
- 2:17I definitely need 10!
- 5:58The top 10 best new features in C# version 6 to 9
- 6:32No. 10 String Interpolation
- 9:07Default Interface Methods
- 9:26public interface EmalClient Task SendEmail(Address from Address to string subject, string body)
- 9:42Shouldn't we use templates for the e-mails?
- 12:34Out Variables
- 14:28Expression Bodied Members
- 18:39Discards
- 27:26No. 5 Null-Conditional Operator & Null-Coalescing Assignment
- 29:12Nullable Reference Types
- 37:30Named Tuples
- 39:57C# 7 Value Tuples
- 40:44C# Tuples vs Value Tuples C# Tuples -immutable ref types with properties Value Tuples-mutable value types with fields
- 44:29Pattern matching & Switch expressions
- 51:36Record Types
- 52:56and then we add equality checking...
- 55:51favorite features!
- 56:16Is C# getting too complicated?
related talks
01h 00mWhat's new in C#? Exciting new features in C# 8.0, 9.0 and 10!
01h 02mWhat's new in C#? Exciting new features in C# 8 0 and 9 0
01h 00mLet’s catch up with C#! Exciting new features in C# 9 to C# 14!
56mC# 8 and Beyond
42mWhat's New in C# 14 and .NET 10
39mThe State of C# - What Have I Missed?
58mWhat's new in C# 11
57mWhat's Coming to C#?
