This C# 9 code cheat sheet has explainations on how you can work with the new features of the language and some background on C# 8, too.
Fantastic cheat sheet thanks very much Franco
Great article! Very thorough and the examples are great.
I noticed that the MoveNext() in the example for the “Enumerability by Extension” does not work correctly.
By the way, let me suggest making the enumerator a value type. This way the calls to the methods are not virtual, making the enumeration much faster. In this short example, it does really matter but, for larger collections, it makes a significant difference.
Here’s my implementation to which I also added a few C#8 features: https://sharplab.io/#v2:EYL…