Skip to content

Commit c754c39

Browse files
authored
Create namespace-naming.md
First contribution
1 parent 53e0195 commit c754c39

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)