fix CSharpCodeGenerator overrides