dotnet / dotnet/docs

Private instance fields naming convention not followed

Open
#40,078 1 comment 0 reactions 0 assignees View on GitHub
:watch: Not Triaged
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
19h 10m
Merged PRs (30d)
268

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/Private-instance-fields-naming-conventio/10617834)._

---
[severity:It bothers me. A fix would be nice]
It appears that the naming convention is not followed for the the Account class fields. It is because the following link https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/identifier-names states:
"Private instance fields start with an underscore (_) and the remaining text is camelCased."

---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: 3edbf125-784e-14eb-5989-7f0334dc659b
* Version Independent ID: 8bca01b4-44f9-31fd-8616-fc8bed9275ef
* Content: [lock statement - synchronize thread access to a shared resource - C#](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/lock)
* Content Source: [docs/csharp/language-reference/statements/lock.md](https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/statements/lock.md)
* Service: **dotnet-csharp**
* Sub-service: **lang-reference**
* GitHub Login: @BillWagner
* Microsoft Alias: **wiwagn**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.