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 Sharp (programming language)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

  • C Sharp (programming language)
    ImageC Sharp (programming language)

    Microsoft, Public domain, via Wikimedia Commons

Related