Skip to content
C# 8 Cheat Sheet, Default Interface Methods, Pattern Matching, Indices and Ranges, Nullable Reference Types, Asynchronous Streams, Caller Expression Attribute ,Static Local Functions, Default in Deconstruction., Alternative Interpolated Verbatim Strings, Using Declarations, Relax Ordering of ref and partial Modifiers, Disposable ref structs, Gen…
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CSharp8CheatSheet.pdf Add files via upload May 9, 2019
CSharp8CheatSheet.pptx Add files via upload May 9, 2019
CSharp8CheatSheetUpdated.pdf Updating the cheatsheet Oct 25, 2019
CSharp8CheatSheetUpdated.pptx Updating the cheatsheet Oct 25, 2019
CSharp8CheatSheet_CSharpCorner_2020.pptx updating the cheat sheet for the C#Corner conference Feb 10, 2020
README.md update the cheatsheet Oct 25, 2019

README.md

CSharp8CheatSheet

C# 8 Cheat Sheet with code example

Updated according to the Microsoft documentation: https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-8

  1. Default interface methods
  2. Nullable reference types
  3. Pattern matching enhancements
  4. Asynchronous streams
  5. Using declarations
  6. Enhancement of interpolated verbatim strings
  7. Null-coalescing assignment
  8. Static local functions
  9. Indices and ranges
  10. Unmanaged constructed types
  11. Readonly-Member
  12. Stackalloc in nested expressions
  13. Disposable ref structs

I will keep updating the cheat sheet. Please follow me and start it.

The following features are moved to C# 8.1, 8.2 and 8.x

  • Caller expression attribute
  • Target-typed new
  • Generic attributes
  • Default in deconstruction
  • Relax ordering of ref and partial modifiers

The following feaures will coming in C# 8.0 MERGED -> To Master

  • Default Interface Methods
  • Nullable reference type
  • Recursive patterns
  • Async streams
  • Enhanced using
  • Ranges
  • Null-coalescing Assignment
  • Alternative interpolated verbatim strings
  • stackalloc in nested contexts
  • Unmanaged generic structs
  • Static local functions
  • Readonly members

About me: www.bassam.ml

You can’t perform that action at this time.