如何查看Reflector代码的XML注释

时间:2021-04-23 12:31:54

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.

我更喜欢使用反射器浏览组件,即使我有特殊的源代码,以防我搬到新项目。但我觉得如果我能在反射器中看到源代码的XML注释会很好。

Is any addin which would do that?

是否有任何插件会这样做?

Thanks In advance, Uday

在此先感谢Uday

2 个解决方案

#1


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

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

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

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

#2


I think this might help you.

我想这可能会对你有所帮助。

http://www.red-gate.com/messageboard/viewtopic.php?t=8630

#1


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

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

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

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

#2


I think this might help you.

我想这可能会对你有所帮助。

http://www.red-gate.com/messageboard/viewtopic.php?t=8630