Back to list
Views:   0
Replies:  0
Reply 1
If you want to use reflection to retieve the description of a class, you can use DescriptionAttribute to decorate your class/property
something like,

[Description("Passenger Type, the length is limited to 3 chars")]
public string PassengerType
     set { passengertype = value; }
     get { return passengertype; }

Jun Ren, Dec 22, 2010
Reply 2

AFAIK there is no way, using reflection, to get hold of the Xml summary comments. That kind of information is not stored at all. What tools like NDoc and similar do, is that they let Visual Studio generate the comments in a separate xml file and the parse that file to extract the comments.


Robert Blixt, Nov 21, 2010
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas