简体   繁体   中英

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 .

DocsByReflection can be used to get the summary. Refer to the link here for details.

And the answer is:

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

Looks like it is possible.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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