如何从Reflector中查看代码的XML注释 [英] How to see XML comments of the code from Reflector

查看:105
本文介绍了如何从Reflector中查看代码的XML注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使我有源代码,特别是在转移到新项目的情况下,我还是喜欢使用反射器浏览程序集. 但是我觉得如果能在反射器中看到源代码的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?

在此先感谢您, 乌代

推荐答案

XML注释未编译为程序集-它们进入单独的XML文件.如果是您的程序集,或者您要分析的程序集随附XML文件,则Reflector会自动将其拾取.如果没有-您选择不了,抱歉...

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...

无论如何,这些注释将不会与代码一起显示-您将在反汇编窗口(格式为文档样式)下看到它们.

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

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

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! :)

这篇关于如何从Reflector中查看代码的XML注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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