Fix CSharpGenerator