Skip to content

Commit bb5e64d

Browse files
authored
Merge pull request #23 from luchowise/patch-1
Create namespace-naming.md
2 parents a9de54d + c754c39 commit bb5e64d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

csharp/namespace-naming.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# C# Naming Convention > Namespace Naming
2+
3+
## PascalCase
4+
- Capitalize first letter of each word of the namespace
5+
- First word of the namespace is the assembly name
6+
- Second word of the namespace should be the project name
7+
- Third word and subsequent words of the namespace should match to folder's structure of the project
8+
- Use a dot (.) to separate each token of the namespace
9+
- Use nouns instead of verbs
10+
11+
```c#
12+
MyAssembly.ProjectName.FolderName
13+
Utils.EmailUtils.Smtp
14+
FrontEnd.AspMvcPages.View
15+
Backend.WebService.Api.Controller
16+
17+
18+
```

0 commit comments

Comments
 (0)