- Use
var
only 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
using
directives withSystem.*
first, then others in alphabetical order.
- Use
PascalCase
for component names, classes, methods, and properties.