Demo of C# 8.0 language features, some of which I have demoed at PHINUG meetups and .NET Conf 2019 Manila.
The features included in this demo solution are the ff:
- Static local functions
- Asynchronous streams
- Indices and ranges
- Null-coallescing assignment
- Using declarations
- Enhancement of interpolated verbatim strings
- Pattern Matching - Switch Expressions
- Pattern Matching - Property Patterns
- Pattern Matching - Tuple Patterns
- Pattern Matching - Positional Patterns
- Default interface methods
- Nullable reference types
Note that the Program.cs file itself uses the static local functions feature.
For further reading please visit https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-8.
Several of the code samples here are taken from the page above.