Skip to content

Commit df3c43d

Browse files
BillWagnergewarren
andauthored
Apply suggestions from code review
Co-authored-by: Genevieve Warren <[email protected]>
1 parent 4f9fb2f commit df3c43d

File tree

1 file changed

+3
-3
lines changed
  • docs/csharp/language-reference/compiler-messages

1 file changed

+3
-3
lines changed

docs/csharp/language-reference/compiler-messages/cs0051.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Compiler Error CS0051"
33
title: "Compiler Error CS0051"
4-
ms.date: 01/11/2025
4+
ms.date: 08/05/2025
55
f1_keywords:
66
- "CS0051"
77
helpviewer_keywords:
@@ -12,9 +12,9 @@ ms.assetid: 62182e8d-c4a5-4853-a990-fd57a4f7c3b8
1212

1313
Inconsistent accessibility: parameter type 'type' is less accessible than method 'method'
1414

15-
This error occurs when you declare a method (including constructors) with a parameter type that is less accessible than the method itself. For example, you might have a public constructor that uses an internal or private class as a parameter type.
15+
This error occurs when you declare a method (including constructors) with a parameter type that's less accessible than the method itself. For example, you might have a public constructor that uses an internal or private class as a parameter type.
1616

17-
The most common scenario is when you're defining a public method but one of its parameter types is internal or private. This creates an inconsistency because external code can see the method but can't access the types needed to call it.
17+
The most common scenario is when you define a public method but one of its parameter types is internal or private. This creates an inconsistency because external code can see the method but can't access the types needed to call it.
1818

1919
## How to troubleshoot this error
2020

0 commit comments

Comments
 (0)