Skip to content

Commit

Permalink
Merge pull request #23 from luchowise/patch-1
Browse files Browse the repository at this point in the history
Create namespace-naming.md
  • Loading branch information
farbodsaraf committed Jun 18, 2019
2 parents a9de54d + c754c39 commit bb5e64d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions csharp/namespace-naming.md
@@ -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


```

0 comments on commit bb5e64d

Please sign in to comment.