name: csharp-coding-guidelines description: Coding guidelines for C# development. Use whenever you generate C# code.
Single-Line Statements
Always use braces {} for single-line statements, even if they are not required.
Bad:
if (condition)
DoSomething();
Good:
if (condition)
{
DoSomething();
}