Mark postponed C# features

This commit is contained in:
Marcello 2021-11-08 09:17:32 +01:00
parent 0fd87958af
commit 7bc6bc6e97

View file

@ -1439,10 +1439,10 @@ class Class
set => _backingField = value; set => _backingField = value;
} }
// access backing field with the field keyword [C# 10] // access backing field with the field keyword [C# 11?]
public Type Property { get => field; set => field = value; } public Type Property { get => field; set => field = value; }
// required property [C# 10], prop myst be set at obj init (in constructor or initializer) // required property [C# 11?], prop must be set at obj init (in constructor or initializer)
public required Type Property { get; set; } public required Type Property { get; set; }
// EXPRESSION-BODIED READ-ONLY PROPERTY // EXPRESSION-BODIED READ-ONLY PROPERTY