November 12, 2024
C# 13 released with .NET 9
C# 13 shipped with .NET 9 on November 12, 2024 — adding `params` collections, a new `lock` type, and partial properties.
What it was for
C# 13's `params` spans and collections simplified APIs that accept variable arguments; the new `lock` type and partial properties improved concurrency and code generation ergonomics. Paired with .NET 9's performance work, it kept C# current for cloud and AI workloads.
Companies
- Microsoft
Why it's here
C# 13 refined collection parameters, partial properties, and lock ergonomics for modern .NET APIs.
Why it mattered
Params collections reduced boilerplate in logging, formatting, and DSL APIs.
What it solved
Variable-argument APIs required array allocations or `params object[]` workarounds.
Media
- ImageC Sharp (programming language)
Microsoft, Public domain, via Wikimedia Commons
Related
- .NET 9 releasedNovember 12, 2024
- C# 12 released with .NET 8November 14, 2023
- C# 11 released with .NET 7November 8, 2022