Bugfixes CSharp Generators