Fix C# Generation