- Use 4 spaces for indentation in C# code.
- Favor file-scoped namespaces (
namespace MyNamespace;). - Prefer
varfor local variables when the type is clear. - Keep braces on the same line as declarations.
- After changing any files, run
dotnet testfrom the repository root. - Commit messages use the format
scope: summary(e.g.feat: add logging). - Follow standard C# naming conventions:
- Use
PascalCasefor class names, method names, properties, and public fields. - Use
camelCasefor local variables and method parameters. - Use
_camelCasefor private fields.
- Use
- Document public APIs with XML documentation comments (
///).