如何从 Reflector 中查看代码的 XML 注释

发布于 2024-07-24 20:35:28 字数 131 浏览 6 评论 0原文

我更喜欢使用反射器浏览程序集,即使我有源代码,特别是当我移动到新项目时。 但我觉得如果能在 Reflector 中看到源代码的 XML 注释就好了。

有任何插件可以做到这一点吗?

提前致谢, 乌代

I prefer to browse the assemblies using reflector even though i have source code with me specially in case when i move to new project.
But I feel it would be nice if i could see the XML comments of the source code in reflector.

Is any addin which would do that?

Thanks In advance,
Uday

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

赠佳期 2024-07-31 20:35:28

XML 注释不会编译到程序集中 - 它们会进入单独的 XML 文件。 如果它是您的程序集,或者 XML 文件随您尝试分析的程序集一起提供,那么 Reflector 将自动选取它们。 如果没有 - 您别无选择,抱歉...

编辑:无论如何,这些注释不会与您的代码一起显示 - 您将在反汇编窗口下方看到它们,采用文档样式格式。

Edit2:如果您愿意,您似乎可以内联显示 XML 注释 - 设置对话框中有一个选项。 不知道! :)

XML comments are not compiled into assembly - they go into separate XML file. If it is your assembly, or XML file is shipped with the assembly you're trying to analyze, then Reflector will pick them up automatically. If not - you are out of options, sorry...

Edit: Anyway, those comments won't be displayed alongside your code - you'll see them below the disassembly window, documentation-style formatted.

Edit2: It appears that you can display your XML comments inline if you want to - there is an option for that in settings dialog. Didn't know that! :)

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