Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from luchowise/patch-1
Create namespace-naming.md
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# C# Naming Convention > Namespace Naming | ||
|
||
## PascalCase | ||
- Capitalize first letter of each word of the namespace | ||
- First word of the namespace is the assembly name | ||
- Second word of the namespace should be the project name | ||
- Third word and subsequent words of the namespace should match to folder's structure of the project | ||
- Use a dot (.) to separate each token of the namespace | ||
- Use nouns instead of verbs | ||
|
||
```c# | ||
MyAssembly.ProjectName.FolderName | ||
Utils.EmailUtils.Smtp | ||
FrontEnd.AspMvcPages.View | ||
Backend.WebService.Api.Controller | ||
|
||
|
||
``` |