簡體   English   中英

是否可以使用反射獲得類型的摘要?

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

您知道如何轉到對象瀏覽器並選擇一種類型時,其名稱下方有一個摘要嗎?

例如:

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.

是否可以使用反射獲得該信息? 如果是這樣,怎么做? 如果不可能,那么該數據存儲在哪里?

can't be discovered by reflection注釋的原因是因為它們not included in the .NET assemblies (.EXE或.DLL文件)中,而是通常included as .XML files to accompany the assembly files

DocsByReflection可用於獲取摘要。 有關詳細信息,請參見此處的鏈接。

答案是:

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

看起來是可能的。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM