C#C
C#3y ago
54 replies
Kibar

❔ C# private methods capitalization convention

What is the official capitalization convention for private methods?

The capitalization convention page (https://learn.microsoft.com/en-us/dotnet/standard/design-guidelines/capitalization-conventions) does not mention private methods explicitly.

However the dotnet runtime repo enforces PascalCase for all methods (https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/coding-style.md number 13)

So what is the official convention?
Was this page helpful?