If Statement Block of code best practice
i have silly question paying attention small stuff because plan on getting certified end of year or sometime next year.
i read best practice use opening , closing brackets if statements in event or else adds code later. this makes sense me not remember read when re-factoring code can uses compound statements , omit brackets make code cleaner. which method best practice according microsoft?
// if(boolean) // else // or else
// or if(boolean) {
// } else {
// or else }
please mark answered if answers question or unmark answered if did not.
happy :)
my site
Visual Studio Languages , .NET Framework > Visual C#
Comments
Post a Comment