From c4937eed2e048716b3b987dfd90a213a5cd4f1f2 Mon Sep 17 00:00:00 2001 From: OJacot-Descombes Date: Thu, 20 Aug 2020 17:18:25 +0200 Subject: [PATCH] Further clarified use of abbreviations in 7. --- C# Coding Standards and Naming Conventions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/C# Coding Standards and Naming Conventions.md b/C# Coding Standards and Naming Conventions.md index 2325657..3d12d45 100644 --- a/C# Coding Standards and Naming Conventions.md +++ b/C# Coding Standards and Naming Conventions.md @@ -99,12 +99,12 @@ UriPart uriPart; ***Why: consistent with the Microsoft's .NET Framework and prevents inconsistent abbreviations.*** -#### 7. Do use PascalCasing 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 grap visually too much attention.***