Skip to content

Latest commit

 

History

History
59 lines (46 loc) · 993 Bytes

0. Files.md

File metadata and controls

59 lines (46 loc) · 993 Bytes

0 Files

The following are the naming conventions and guidance for naming C# files.

0.0 Naming

File names should follow the PascalCase convention followed by the file extension .cs.

Do
Student.cs
Also, Do
StudentService.cs
Don't
student.cs
Also, Don't
studentService.cs
Also, Don't
Student_Service.cs

0.1 Partial Class Files

Partial class files are files that contain nested classes for a root file. For instance:

  • StudentService.cs
    • StudentService.Validations.cs
    • StudentService.Exceptions.cs

Both validations and exceptions are partial classes to display a different aspect of any given class in a multi-dimensional space.

Do
StudentService.Validations.cs
Also, Do
StudentService.Validations.Add.cs
Don't
StudentServiceValidations.cs
Also, Don't
StudentService_Validations.cs