I'm working on a documentation generator. MSDN documentation shows the parameters passed to Attributes when they are applied. Such as [ComVisibleAttribute(true)]
. How would I get those parameter values and/or the constructor called in my c# code via reflection, pdb file or otherwise?
To clarify> If someone has documented a method that has an attribute on it like so:
/// <summary> foo does bar </summary>
[SomeCustomAttribute("a supplied value")]
void Foo() {
DoBar();
}
I want to be able to show the signature of the method in my documentation like so:
Signature:
[SomeCustomAttribute("a supplied value")]
void Foo();