November 8, 2022

C# 11 released with .NET 7

C# 11 shipped with .NET 7 on November 8, 2022 — adding raw string literals, required members, and generic math support.

What it was for

C Sharp (programming language)C# 11's raw strings (`"""..."""`) made JSONJavaScript Object Notation — a lightweight text format for structured data exchange on the web. and SQLStructured Query Language — the standard language for querying relational databases. in code readable without escape hell; `required` properties enforced initialization at compile time; static abstract interface members enabled generic math on numeric types.

Companies

  • Microsoft

Why it's here

C# 11 raw strings solved a daily pain point for config-heavy .NET apps.

Why it mattered

Required members caught incomplete object initialization before runtime.

What it solved

Multiline strings and nullable reference types needed better ergonomics together.

Media

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

    Microsoft, Public domain, via Wikimedia Commons

Related