From 4b69c9246fa80f628466fd000371c699d71a8243 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Thu, 14 Nov 2024 20:24:10 -0800 Subject: [PATCH 1/2] Update field-preview.md --- docs/csharp/includes/field-preview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/csharp/includes/field-preview.md b/docs/csharp/includes/field-preview.md index b504bd1d668de..e31f6a823b156 100644 --- a/docs/csharp/includes/field-preview.md +++ b/docs/csharp/includes/field-preview.md @@ -9,4 +9,4 @@ ms.date: 10/30/2024 > > The `field` keyword is a preview feature in C# 13. You must be using .NET 9 and set your `` element to `preview` in your project file in order to use the `field` contextual keyword. > -> You should be careful using the `field` keyword feature in a class that has a field named `field`. The new `field` keyword shadows a field named `field` in the scope of a property accessor. You can either change the name of the `field` variable, or use the `@` token to reference the `field` identifier as `@field`. You can learn more by reading the feature specification for [the `field` keyword](~/_csharplang/proposals/field-keyword.md). +> You should be careful using the `field` keyword feature in a class that has a field named `field`. The new `field` keyword shadows a field named `field` in the scope of a property accessor. You can either change the name of the `field` variable, or use the `@` token to reference the `field` identifier as `@field`. You can learn more by reading the feature specification for [the `field` keyword](https://github.com/dotnet/csharplang/blob/main/proposals/field-keyword.md). From f070353920d4790513b354f52415cc9e96d43928 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Fri, 15 Nov 2024 08:51:58 -0800 Subject: [PATCH 2/2] update docfx instead --- docfx.json | 3 ++- docs/csharp/includes/field-preview.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docfx.json b/docfx.json index b2755e4d43c33..4837312d81019 100644 --- a/docfx.json +++ b/docfx.json @@ -53,7 +53,8 @@ "csharp-10.0/*.md", "csharp-11.0/*.md", "csharp-12.0/*.md", - "csharp-13.0/*.md" + "csharp-13.0/*.md", + "field-keyword.md" ], "src": "_csharplang/proposals", "dest": "csharp/language-reference/proposals", diff --git a/docs/csharp/includes/field-preview.md b/docs/csharp/includes/field-preview.md index e31f6a823b156..b504bd1d668de 100644 --- a/docs/csharp/includes/field-preview.md +++ b/docs/csharp/includes/field-preview.md @@ -9,4 +9,4 @@ ms.date: 10/30/2024 > > The `field` keyword is a preview feature in C# 13. You must be using .NET 9 and set your `` element to `preview` in your project file in order to use the `field` contextual keyword. > -> You should be careful using the `field` keyword feature in a class that has a field named `field`. The new `field` keyword shadows a field named `field` in the scope of a property accessor. You can either change the name of the `field` variable, or use the `@` token to reference the `field` identifier as `@field`. You can learn more by reading the feature specification for [the `field` keyword](https://github.com/dotnet/csharplang/blob/main/proposals/field-keyword.md). +> You should be careful using the `field` keyword feature in a class that has a field named `field`. The new `field` keyword shadows a field named `field` in the scope of a property accessor. You can either change the name of the `field` variable, or use the `@` token to reference the `field` identifier as `@field`. You can learn more by reading the feature specification for [the `field` keyword](~/_csharplang/proposals/field-keyword.md).