XML注释和反思 [英] XML Comments and Reflection

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

问题描述

有没有人知道如何通过反射或任何其他运行时方式以编程方式检索方法的XML注释




我实际上总是以为你在评论中的描述是

自动放入DescriptionAttribute,但经过测试后这个

似乎并非如此......


-

John Wood

电子邮件:来自priorganize.com的名字,点,名字

Does anyone know how to programmatically retrieve a method''s XML comments
through reflection or any other run-time means?

I actually always thought that the description you put in comments was
automatically put into the DescriptionAttribute, but after testing this
doesn''t seem to be the case...

--
John Wood
EMail: first name, dot, second name at priorganize.com

推荐答案

嗨约翰,


你是对的John;注释不会放入DescriptionAttribute。


查看有关如何提取XML文档的NDoc源代码:
http://sourceforge.net/projects/ndoc/

HTH,

Rakesh Rajan


" John Wood" < SP ** @ isannoying.com>在消息中写道

新闻:例如************* @ tk2msftngp13.phx.gbl ...
Hi John,

You are right John; the comments are not put into the DescriptionAttribute.

Have a look at the NDoc source code on how to extract the XML documentation:
http://sourceforge.net/projects/ndoc/

HTH,
Rakesh Rajan

"John Wood" <sp**@isannoying.com> wrote in message
news:eg*************@tk2msftngp13.phx.gbl...
有没有人知道如何以编程方式通过反射或任何其他运行时方法检索方法的XML注释?

我实际上一直认为你在评论中添加的描述是自动放入DescriptionAttribute,但在测试之后似乎并非如此......

-
John Wood
电子邮件:名字,点,秒姓名在priorganize.com
Does anyone know how to programmatically retrieve a method''s XML comments
through reflection or any other run-time means?

I actually always thought that the description you put in comments was
automatically put into the DescriptionAttribute, but after testing this
doesn''t seem to be the case...

--
John Wood
EMail: first name, dot, second name at priorganize.com



嗨Rakesh,

感谢您的回复。

nDoc似乎处理从Visual Studio

项目导出的XML ...所以那里没有运气。


看起来难以捉摸。 ..如何从

汇编中提取摘要评论?!


-

John Wood

电子邮件:priorganize.com上的名字,点,名字

" R akesh Rajan < RA ********************** @ hotmail.com>在消息中写道

新闻:Ox ************** @ TK2MSFTNGP15.phx.gbl ...
Hi Rakesh,
Thanks for your reply.
nDoc seems to process the XML that''s exported from a Visual Studio
project... so no luck there.

It seems elusive... how do you extract the summary comments from an
assembly?!

--
John Wood
EMail: first name, dot, second name at priorganize.com
"Rakesh Rajan" <ra**********************@hotmail.com> wrote in message
news:Ox**************@TK2MSFTNGP15.phx.gbl...
嗨John,

你是对的约翰;注释没有放入
DescriptionAttribute。
看看有关如何提取XML
文档的NDoc源代码: http://sourceforge.net/projects/ndoc/

HTH,
Rakesh Rajan

John Wood < SP ** @ isannoying.com>在消息中写道
新闻:例如************* @tk2msftngp13.phx.gbl ...
Hi John,

You are right John; the comments are not put into the DescriptionAttribute.
Have a look at the NDoc source code on how to extract the XML documentation: http://sourceforge.net/projects/ndoc/

HTH,
Rakesh Rajan

"John Wood" <sp**@isannoying.com> wrote in message
news:eg*************@tk2msftngp13.phx.gbl...
有谁知道如何以编程方式检索方法'通过反射或任何其他运行时方式的XML
注释?

我实际上一直认为你在评论中添加的描述是自动放入DescriptionAttribute,但之后测试这个似乎并非如此......

-
John Wood
电子邮件:在firstganize中的名字,点,第二个名字。 com
Does anyone know how to programmatically retrieve a method''s XML comments through reflection or any other run-time means?

I actually always thought that the description you put in comments was
automatically put into the DescriptionAttribute, but after testing this
doesn''t seem to be the case...

--
John Wood
EMail: first name, dot, second name at priorganize.com




John Wood< sp ** @ isannoying.com>写道:
John Wood <sp**@isannoying.com> wrote:
感谢您的回复。
nDoc似乎处理从Visual Studio
项目导出的XML ...所以没有运气。

看起来难以捉摸......如何从
程序集中提取摘要注释?!
Thanks for your reply.
nDoc seems to process the XML that''s exported from a Visual Studio
project... so no luck there.

It seems elusive... how do you extract the summary comments from an
assembly?!




他们不是*在*汇编 - 它们只在.xml文件中。


-

Jon Skeet - < sk *** @ pobox.com> ;
http://www.pobox.com/~skeet

如果回复小组,请不要给我发邮件



They''re not *in* the assembly - they''re only in the .xml file.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


这篇关于XML注释和反思的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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