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
The compiler erases all notions of a codefile from your code as it is compiled. That being said perhaps it is possible to retrieve the information you want from debugging symbols if they are available in your assembly.