Robert Haken, software & cloud architect, founder at HAVIT Microsoft MVP, MCT, MCSE haken@havit.cz Twitter: @RobertHaken https://knowledge-base.havit.cz (Česká verze) https://knowledge-base.havit.eu (English version)
1. C# 7.1 - Async Main 1/2
CSharp71PlusApp/Program_71_AsyncMain.cs
- https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-7-1#async-main
- nefunguje, protože se pokouší kompilovat jako C# 7.0 - "C# latest major version (default)"
2. Language version selection
- C# latest minor version (latest)
- https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-7-1#language-version-selection
3. C# 7.1 - Async Main 2/2
4. C# 7.1 - Default Literal Expressions
CSharp71PlusApp/71_DefaultLiteralExpressions.cs
- https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-7-1#default-literal-expressions
5. C# 7.1 - Inferred tuple element names
CSharp71PlusApp/71_InferredTupleElementNames.cs
- https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-7-1#inferred-tuple-element-names
6. C# 7.2 - Reference semantics with value types
CSharp71PlusApp/72_ReferenceSemanticsWithValueTypes.cs
in
parametersref readonly
returnsreadonly struct
typesref struct
types
- https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-7-2#reference-semantics-with-value-types
- https://docs.microsoft.com/en-us/dotnet/csharp/reference-semantics-with-value-types
7. C# 7.2 - Non-trailing named arguments
CSharp71PlusApp/72_NontrailingNamedArguments.cs
- https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-7-2#non-trailing-named-arguments
8. C# 7.2 - Leading underscores in numeric literals
CSharp71PlusApp/72_LeadingUnderscoresInNumericLiterals.cs
- https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-7-2#leading-underscores-in-numeric-literals
9. C# 7.2 - private protected access modifier