What is the best coding practice for single-line code blocks after an if statement - parentheses or curly braces? Just to avoid too much "Well, it depends on what language you use ...", say for C #. In other words, which is better:
if(somecondition) { singleLineStatement; }
or
if(somecondition) singleLineStatement;
source share