是否有.NET API来读取XML注释文档文件 [英] Is there an API in .net to read XML comment documentation file

查看:249
本文介绍了是否有.NET API来读取XML注释文档文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在此<一个href="http://stackoverflow.com/questions/194899/where-does-visual-studio-get-the-type-description-info-used-by-intellisense">question我看到微软船舶的BCL的XML文档文件。我不知道是否有人知道,如果有在.NET的API,可以用来看看这个在运行时。我知道我们可以手动使用XML API解析文件。

In this question I see that microsoft ships the XML documentation files for the BCL. I wonder if anyone knows if there an API within .net that can be used to look this up at runtime. I know we can parse the files manually using the XML api.

用例是,我们允许自定义(读取第三方)类型/组件在我们的系统中使用,并在用户界面中选择这些的时候,我们要提取的文件所指定的自定义类型/装配创建者或如果没有可用的提供其他默认设置。

The use case is that we allow custom (read 3rd party) types/assemblies to be used in our system, and when selecting these in the UI, we'd like to extract the documentation as specified by the custom type/assembly creator or if not available provide other defaults.

推荐答案

我保持在$ C的 Jolt.NET 项目$ CPLEX,并实施了一项功能,执行这个非常任务。请参阅颠簸库以获取更多信息。

I maintain the Jolt.NET project on CodePlex and have implemented a feature that performs this very task. Please refer to the Jolt library for more information.

在本质上,库允许您以编程方式找到并使用的System.Reflection 的元数据类型(即<$ C $查询XML文档注释文件汇编C> MethodInfo的,的PropertyInfo ,等...)。

In essence, the library allows you to programatically locate and query an XML doc comments file for an assembly using the metadata types in System.Reflection (i.e. MethodInfo, PropertyInfo, etc...).

这篇关于是否有.NET API来读取XML注释文档文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆