Added more functionality for generating C# proxy