mirror of
https://github.com/Stone-Red-Code/naming-convention.git
synced 2026-09-08 07:56:10 +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.***
|
***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
|
```csharp
|
||||||
HtmlHelper htmlHelper;
|
HtmlHelper htmlHelper;
|
||||||
FtpTransfer ftpTransfer;
|
FtpTransfer ftpTransfer, fastFtpTransfer;
|
||||||
UIControl uiControl;
|
UIControl uiControl, nextUIControl;
|
||||||
```
|
```
|
||||||
|
|
||||||
***Why: consistent with the Microsoft's .NET Framework. Caps would grab visually too much attention.***
|
***Why: consistent with the Microsoft's .NET Framework. Caps would grab visually too much attention.***
|
||||||
|
|||||||
Reference in New Issue
Block a user