Fix braces in C# code