Skip to content

C# 11.0

Highlights

  • Required members: required keyword to enforce initialization
  • Raw string literals: """multi-line strings without escaping"""
  • Generic math: static abstract members in interfaces
  • List patterns: [1, 2, .. var rest]
  • UTF-8 string literals: โ€œtextโ€u8
  • File-local types: file class Helpers { }
  • Ref fields and scoped ref: ref struct improvements
  • Pattern match span on string