资 源 简 介
Introduction
XmlDocReflector allows access to the generated XML documentation of a .NET assembly during runtime.
System Requirements
.NET 2.0 or above
Usage
Add the assembly XmlDocReflectorLib.dll to the project references
Add XmlDocReflectorLib to the using directives
using XmlDocReflectorLib;
Get XML documentation of MemberInfo (which is a base class of PropertyInfo) instance, e.g.
PropertyInfo pi = this.GetType().GetProperty("TestProperty");// Using .NET 3.5 libraryXmlNode sumary = pi.GetXmlDoc().Summary;XmlNode remarks = pi.GetXmlDoc().Remarks;// Using .NET 2.0 libraryXmlNode sumary = XmlDocReflector.GetXmlDoc(pi).Summary;XmlNode remarks = XmlDocReflector.GetXmlDoc(pi).Remarks;