How to get Classes and methods from a .cs file using Reflections in C#.?

前端 未结 6 1954
执笔经年
执笔经年 2020-12-12 04:06

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         


        
6条回答
  •  盖世英雄少女心
    2020-12-12 05:03

    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

提交回复
热议问题