The Wayback Machine - https://web.archive.org/web/20220208092149/https://github.com/dotnet/aspnetcore/issues/40057
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naming convection confusion #40057

Open
mo-esmp opened this issue Feb 8, 2022 · 0 comments
Open

Naming convection confusion #40057

mo-esmp opened this issue Feb 8, 2022 · 0 comments

Comments

@mo-esmp
Copy link
Contributor

@mo-esmp mo-esmp commented Feb 8, 2022

Sorry for choosing the wrong category, I had no idea where to ask this question.

Hence .NET developers consider ASP.NET source code as best practice for many thing things like naming convention, I'm wondering what is the naming convention for protected fields?
For example, in ActionEndpointDataSourceBase class, some protected fields' names start with _ and some start with a capital letter (PascalCasing).
image

According to Names of Fields convention for public static and protected fields, it should be PascalCasing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant