You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/csharp/language-reference/compiler-messages/cs0051.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Inconsistent accessibility: parameter type 'type' is less accessible than method
14
14
15
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.
16
16
17
-
The most common scenario is when you're defining a public constructor but one of its parameter types is internal or private. This creates an inconsistency because external code can see the constructor but can't access the types needed to call it.
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.
0 commit comments