From a0dc9f51a307c65522f77c50def0bfc27af1e210 Mon Sep 17 00:00:00 2001 From: Marcello Lamonaca Date: Tue, 8 Nov 2022 17:43:20 +0100 Subject: [PATCH] fix(c#): remove `field` keywork --- docs/dotnet/C#/C#.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/dotnet/C#/C#.md b/docs/dotnet/C#/C#.md index 66758fa..12ca4ac 100644 --- a/docs/dotnet/C#/C#.md +++ b/docs/dotnet/C#/C#.md @@ -1438,10 +1438,7 @@ class Class set => _backingField = value; } - // access backing field with the field keyword [C# 11?] - public Type Property { get => field; set => field = value; } - - // required property [C# 11?], prop must be set at obj init (in constructor or initializer) + // REQUIRED PROPERTY prop must be set at obj init (in constructor or initializer) public required Type Property { get; set; } // EXPRESSION-BODIED READ-ONLY PROPERTY