获取类型的成员描述

发布于 2024-10-02 19:18:57 字数 295 浏览 0 评论 0原文

我正在编写一个利用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

土豪 2024-10-09 19:18:57

该信息不在程序集中,而是从匹配的 .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 have foo.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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文