- All code comments must be written in English (US)
- Use explicit types: Do not use
var, always declare the explicit type - Always use braces: Use curly braces
{}even for single-lineif,else,for,foreach,whilestatements - Naming conventions: Follow standard C# PascalCase for public members, camelCase for private fields
// Correct
string filePath = GetFilePath();
if (filePath != null)
{
ProcessFile(filePath);
}
// Incorrect
var filePath = GetFilePath();
if (filePath != null)
ProcessFile(filePath);- Ensure all code follows the coding standards above
- Test your changes thoroughly before submitting
- Update documentation if necessary