更新时间:2023-02-23 21:49:45
我不知道这是否是使用任何你,但Visual Studio的加载项包括EnvDTE对象,让你完全访问VB和C#语言解析器。
见查找代码的代码模型一>
I don't know if it's any use to you but Visual Studio Addins include a EnvDTE object, that gives you full access to the VB and C# language parsers. See Discovering Code with the code Model
我相切年前感动就可以了,我不知道它是多么的不好用,或者是多么有效,但它看起来像它会给你所需要的。
I touched on it tangentially years ago, I don't know how difficult it is to use, or how effective it is, but it does look like it will give you what you need.
中的代码模型允许
自动化客户端,以避免
实施解析器可视
Studio语言,以便及时发现
在
项目的高层次的定义,如类,接口,
结构,方法,属性和
以便上。
The code model allows automation clients to avoid implementing a parser for Visual Studio languages in order to discover the high-level definitions in a project, such as classes, interfaces, structures, methods, properties, and so on.
如果你读完全文章是讲述如何从文件中拉全文的功能
If you read the article in full it tells how to pull the full text from a file for a function
希望这有助于:)