How to get the classes that are available in a \'.cs\' file.? Like we can get the classes and methods in an Assembly using,
Assembly.GetTypes() and Type.GetM
I recommend you to use a parser generator tool to generate a quick c# parser, you can use Antlr.
Also you can check this and this