Examine an Assembly

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

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
 
Tony Johansson said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top