Jul 152013
 
 July 15, 2013  Posted by at 6:09 pm C# & F#, Uncategorized 16 Responses »
Stupid Question 219: In C# should you use braces on one line if-statements? And are one-liners on the same line considered a bad practice?

Now here are two questions I’ve had for a while, as I’ve seen both ways by good developers and I’m a bit unsure what the most popular rule is. If an if-statement only executes one line then you can omit the braces, I tend to do that as the braces add too much noise. I […]