Generate script file(Modified syntax) from C# class parsing

Topics: APIs, General
Jun 9, 2014 at 9:52 AM
Edited Jun 9, 2014 at 9:59 AM
Hi,

I want to generate the Script files from one c# class. Basically Script file syntax is similar to C# but the signature of methods are different and datatypes are different. Rest remains same. I want to utilize the Roslyn APIs to convert c# class to script file with modified syntax. Is it the write approach? Can we modify the token value and syntax tree in Roslyn?

Guide me on this.

Thanks,
Jeet