File Names

  • DO use PascalCasing for filenames and directory names.

  • DO name source files according to their main classes.

    Exception: file names with partial classes reflect their source or purpose, e.g. Designer, Generated, etc.

    // Located in Task.cs
    public partial class Task
    {
        //...
    }
    
    // Located in Task.Generated.cs
    public partial class Task
    {
        //...
    }
    
  • ✅ In general, prefer one core class per file.

Learn More