C# not compiling

I just ran this through a converter which turns out did a pretty bad
job. Fixed to compile.
Removed extra } added