Alberto
Thu Aug 28 06:31:34 CDT 2008
"Tony Johansson" <johansson.andersson@telia.com> wrote in message
news:u6P2IDPCJHA.4884@TK2MSFTNGP02.phx.gbl...
> Is it possible for a program to look up classes, methods and properties of
> the
> objects defined within the assembly.
>
> How is that done if it's possible ?
This can be done by means of Reflection. The documentation is linked
here:
http://msdn.microsoft.com/en-us/library/f7ykdhsy.aspx
In summary, you would use the Assembly class to access the Assembly,
then call GetTypes() on the Assembly to enumerate all the Types in the
assembly, and then for each Type call GetMethods(), GetProperties(), and so
on, to enumerate its members.