- Use
varonly when the type is obvious; otherwise, use explicit types. - Keep line length under 120 characters.
- Use consistent indentation and always include braces (
{}) even for single-line statements. - Group
usingdirectives withSystem.*first, then others in alphabetical order.
- Use
PascalCasefor component names, classes, methods, and properties.