Skip to content

Instantly share code, notes, and snippets.

@AlgorithmsAreCool
Created January 29, 2020 02:11
Show Gist options
  • Save AlgorithmsAreCool/17e69ccff3333b800c0ff3417485da0c to your computer and use it in GitHub Desktop.
Save AlgorithmsAreCool/17e69ccff3333b800c0ff3417485da0c to your computer and use it in GitHub Desktop.

Examples of Sugar since C# 6.0

  • Discards
  • ?.
  • Dictionary Initializers
  • Auto-Property Initializers (heck, Auto Properties in general)
  • Using Static
  • Inline out variables
  • Async Main
  • Non-trailing named arguments
  • Leading underscores in numeric literals
  • @$ strings
  • Using declarations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment