A small release with async main, default literals and inferred tuple names.
This release added 4 features, each with a before-and-after example.
Features in C# 7.1
- Async main - Use
asyncandawaitdirectly inProgram.Main. - Default literals - Use
defaultwithout specifying the type explicitly. - Generic type pattern matching - Use pattern matching with generic type constraints.
- Inferred tuple element names - Infer tuple element names from variable names.