简体   繁体   English

是否可以使用反射获得类型的摘要?

[英]Is it possible to obtain a type's summary using reflection?

you know how when you go to object browser and you select a type there is a summary below its name? 您知道如何转到对象浏览器并选择一种类型时,其名称下方有一个摘要吗?

For example: 例如:

public sealed class Activator
     Member of System

 Summary:
  Contains methods to create types of objects locally or remotely, or obtain references to existing remote objects. This class cannot be inherited.

Is it possible to obtain that information using Reflection? 是否可以使用反射获得该信息? If so, how is it done? 如果是这样,怎么做? If that's not possible, where is that data stored? 如果不可能,那么该数据存储在哪里?

The reason the comments can't be discovered by reflection alone is because they are not included in the .NET assemblies (.EXE or .DLL files), but are conventionally included as .XML files to accompany the assembly files . can't be discovered by reflection注释的原因是因为它们not included in the .NET assemblies (.EXE或.DLL文件)中,而是通常included as .XML files to accompany the assembly files

DocsByReflection can be used to get the summary. DocsByReflection可用于获取摘要。 Refer to the link here for details. 有关详细信息,请参见此处的链接。

And the answer is: 答案是:

http://jimblackler.net/blog/?p=49 http://jimblackler.net/blog/?p=49

Looks like it is possible. 看起来是可能的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM