The following are the naming conventions and guidance for naming C# files.
File names should follow the PascalCase convention followed by the file extension .cs
.
Student.cs
StudentService.cs
student.cs
studentService.cs
Student_Service.cs
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.
StudentService.Validations.cs
StudentService.Validations.Add.cs
StudentServiceValidations.cs
StudentService_Validations.cs