Quyida C# fayllarini nomlash qoidalari va ko'rsatmalari keltirilgan.
Fayl nomlari PascalCase formatlash qoidasiga to'g'ri kelishi kerak va faylning kengaytmasiga .cs
mos kelishi kerak.
Student.cs
StudentService.cs
student.cs
studentService.cs
Student_Service.cs
Classlarni bir necha qismlarga bo'lish qanday bo'ladi. Misol uchun:
- StudentService.cs
- StudentService.Validations.cs
- StudentService.Exceptions.cs
Yuqoridagi Validation va Exception class qismlari aslida bir katta classning ichidagi qisman kichik class lardir.
StudentService.Validations.cs
StudentService.Validations.Add.cs
StudentServiceValidations.cs
StudentService_Validations.cs