From 69f41a89342d78b33679dd22596cad660b7ff9c0 Mon Sep 17 00:00:00 2001 From: Olabamiji Oyetubo <60369677+bigboybamo@users.noreply.github.com> Date: Tue, 11 Jun 2024 23:36:22 +0100 Subject: [PATCH 1/2] Update access-modifiers.md Added description for file access type modifier --- .../programming-guide/classes-and-structs/access-modifiers.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/csharp/programming-guide/classes-and-structs/access-modifiers.md b/docs/csharp/programming-guide/classes-and-structs/access-modifiers.md index 5543714e1a752..2fc42d93fb2ac 100644 --- a/docs/csharp/programming-guide/classes-and-structs/access-modifiers.md +++ b/docs/csharp/programming-guide/classes-and-structs/access-modifiers.md @@ -73,6 +73,8 @@ To set the access level for a `class` or `struct` member, add the appropriate ke Finalizers can't have accessibility modifiers. Members of an `enum` type are always `public`, and no access modifiers can be applied. +The `file` access modifier is allowed only on top-level (non-nested) type declarations. + ## C# language specification [!INCLUDE[CSharplangspec](~/includes/csharplangspec-md.md)] From acb802789219ab560147ed93c56c8b66546b14fe Mon Sep 17 00:00:00 2001 From: Olabamiji Oyetubo <60369677+bigboybamo@users.noreply.github.com> Date: Sat, 4 Oct 2025 22:37:11 +0100 Subject: [PATCH 2/2] Update cs0132.md --- docs/csharp/misc/cs0132.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/csharp/misc/cs0132.md b/docs/csharp/misc/cs0132.md index 7590d2b5097f3..1aed19ee48f1b 100644 --- a/docs/csharp/misc/cs0132.md +++ b/docs/csharp/misc/cs0132.md @@ -12,7 +12,7 @@ ms.assetid: e8ad1281-2912-4b6a-b2af-a319a23ddd16 'constructor' : a static constructor must be parameterless - A [static](../language-reference/keywords/static.md) constructor cannot be declared with one or more parameters. For more information, see [Constructors](../programming-guide/classes-and-structs/constructors.md). + A [static](../language-reference/keywords/static.md) constructor cannot be declared with one or more parameters. For more information, see [Static Constructors](../programming-guide/classes-and-structs/static-constructors.md). The following sample generates CS0132: