Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 552 Bytes

README.md

File metadata and controls

20 lines (18 loc) · 552 Bytes

C# 9 CheatSheet

C# 9 Cheat Sheet with code example and pros and cons.

  • Records
  • Init only setters
  • Top-level statements
  • Pattern matching enhancements
  • Native sized integers
  • Function pointers
  • Suppress emitting localsinit flag
  • Target-typed new expressions
  • static anonymous functions
  • Target-typed conditional expressions
  • Covariant return types
  • Extension GetEnumerator support for foreach loops
  • Lambda discard parameters
  • Attributes on local functions
  • Module initializers
  • New features for partial methods