获取类型的成员描述
我正在编写一个利用 Microsoft .NET 4.0 Framework 的 System.Reflection 命名空间的程序,但是我需要一条信息,但我找不到该信息或该信息不存在于该命名空间中。
在 Visual Studio 中,当您访问类型的成员时,IntelliSense 会提供当前成员的简短描述。例如,System.Object.Equals 方法的描述为:“确定指定的 System.Object 是否等于当前的 System.Object”。
框架中是否存在任何方法/属性允许我获取程序集中类型的描述?
谢谢
I am writing a program which utilises the System.Reflection namespace of the Microsoft .NET 4.0 Framework, however there is a piece of information that I require which I cannot find or does not exist in the namespace.
In Visual Studio when you access a type's members the IntelliSense provides a brief description of the member at hand. For example, the System.Object.Equals method has the description: "Determines whether the specified System.Object is equal to the current System.Object."
Does there exist any methods/properties in the framework which allow me to get the description of a type in an assembly?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该信息不在程序集中,而是从匹配的 .xml 文件中获取 - 即
foo.dll
可以选择包含foo.dll.xml
。您需要从那里查询数据,但请注意,在许多情况下,此数据不是通过第 3 方 dll 部署的。That information is not inside the assembly, but is obtained from the matching .xml file - i.e.
foo.dll
can optionally havefoo.dll.xml
. You would need to query the data from there, but note that in many cases this data is not deployed with 3rd-party dlls.