C# version 10

February 6, 2022 ยท View on GitHub

See what's new in C#10

Table of contents

  • [Record structs]
  • [Improvements of structure types]
  • [global using directives]
  • [File-scoped namespace declaration]
  • [Extended property patterns]
  • [Allow const interpolated strings]
  • [Record types can seal ToString()]
  • [Allow both assignment and declaration in the same deconstruction]
  • [Allow AsyncMethodBuilder attribute on methods]

Record structs

Improvements of structure types

global using directives

File-scoped namespace declaration

Extended property patterns

Allow const interpolated strings

Record types can seal ToString()

Allow both assignment and declaration in the same deconstruction

Allow AsyncMethodBuilder attribute on methods

Sources

See also