Fixed weird braces in command generation.

The braces were in the wrong place in C# command generation. :smiley: