471,337 Members | 848 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Is it possible to programatically get the <summary> text of a class,property or method?

I'm currently working on giving my plugins space in my settings.xml
file, actually, that's now working - however I would like to display
each of the plugin's "setting" property summaries in the details section
of the datagrid that I am using to update their values. I was wondering
if there was a way to access this information. (hopefully that's not too
confusing).

I assume there is because I can load up a dll file in my app called
let's say plugin.dll and once I call it I can do things like
plugintype.foo and get a description in some popup text of what that
property, method, etc's summary is.

Thanks in advance,
Benny
Dec 6 '05 #1
3 1476
I just noticed tg.foobar's message about property grid... is this what I
should be using?
[CategoryAttribute("Dates"),
DescriptionAttribute("Actual date mail was received by customer")]

Benny Raymond wrote:
I'm currently working on giving my plugins space in my settings.xml
file, actually, that's now working - however I would like to display
each of the plugin's "setting" property summaries in the details section
of the datagrid that I am using to update their values. I was wondering
if there was a way to access this information. (hopefully that's not too
confusing).

I assume there is because I can load up a dll file in my app called
let's say plugin.dll and once I call it I can do things like
plugintype.foo and get a description in some popup text of what that
property, method, etc's summary is.

Thanks in advance,
Benny

Dec 6 '05 #2
On Mon, 05 Dec 2005 19:41:52 -0500, Benny Raymond
<be***@pocketrocks.com> wrote:
I just noticed tg.foobar's message about property grid... is this what I
should be using?
[CategoryAttribute("Dates"),
DescriptionAttribute("Actual date mail was received by customer")]


Yes, attributes are a better way to do this. Attributes are embedded
in the compiled DLL file so you can get them via reflection.

XML comments are not embedded in the DLL file. They are kept in a
separate XML file, and that's the file that Visual Studio is analyzing
to pop up those helpful messages.
--
http://www.kynosarges.de
Dec 6 '05 #3
Then you should parse the XML file and get such info.
VS.NET also does it that way. If you add reference to a library (say,
log4net.dll) you won't get tooltip until you put its xml comments file
in the same folder.

Dec 6 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Sam | last post: by
5 posts views Thread by news.bellatlantic.net | last post: by
reply views Thread by Mark Siffer | last post: by
4 posts views Thread by Edward Diener | last post: by
4 posts views Thread by Bruno Piovan | last post: by
1 post views Thread by Arne Garvander | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.