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
 MyAssembly.ProjectName.FolderName
 Utils.EmailUtils.Smtp
 FrontEnd.AspMvcPages.View
 Backend.WebService.Api.Controller

Contributors

sandoche