November 8, 2021

C# 10 released with .NET 6

C# 10 shipped with .NET 6A cross-platform .NET release — unified runtime for Linux, macOS, and Windows in 2021. on November 8, 2021 — adding file-scoped namespaces, record structs, global usings, and `InterpolatedStringHandler`.

What it was for

C Sharp (programming language)C# 10 reduced boilerplate: `namespace X;` replaced brace blocks; `global using` cleaned up imports; record structs brought value semantics to small types. Interpolated string handlers enabled zero-allocation formatting in hot paths.

Companies

  • Microsoft

Why it's here

C# 10's file-scoped namespaces and global usings cleaned up everyday .NET code.

Why it mattered

Less ceremony accelerated adoption of minimal hosting and top-level programs.

What it solved

Namespace braces and repetitive using statements cluttered modern C# files.

Media

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

    Microsoft, Public domain, via Wikimedia Commons

Related