Hello!

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 ?

//Tony

Re: Examine an Assembly by Alberto

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.


RE: Examine an Assembly by FamilyTreeMike

FamilyTreeMike
Thu Aug 28 06:41:01 CDT 2008

If you want the class, method and property names, you can use the Object
Browser (under the view menu). If you want to look at the code in each, then
you should get Reflector at http://www.aisto.com/roeder/dotnet.

"Tony Johansson" wrote:

> Hello!
>
> 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 ?
>
> //Tony
>
>
>