mirror of
https://github.com/Stone-Red-Code/naming-convention.git
synced 2026-09-04 09:06:19 +02:00
Merge pull request #28 from OJacot-Descombes/master
Further clarified C# item #7 about casing of abbreviations.
This commit is contained in:
@@ -99,12 +99,13 @@ UriPart uriPart;
|
||||
|
||||
***Why: consistent with the Microsoft's .NET Framework and prevents inconsistent abbreviations.***
|
||||
|
||||
#### 7. Do use camelCasing for abbreviations 3 characters or more (2 chars are both uppercase):
|
||||
|
||||
#### 7. Do use PascalCasing or camelCasing (Depending on the identifier type) for abbreviations 3 characters or more (2 chars are both uppercase when PascalCasing is appropriate or inside the identifier).:
|
||||
|
||||
```csharp
|
||||
HtmlHelper htmlHelper;
|
||||
FtpTransfer ftpTransfer;
|
||||
UIControl uiControl;
|
||||
FtpTransfer ftpTransfer, fastFtpTransfer;
|
||||
UIControl uiControl, nextUIControl;
|
||||
```
|
||||
|
||||
***Why: consistent with the Microsoft's .NET Framework. Caps would grab visually too much attention.***
|
||||
|
||||
Reference in New Issue
Block a user