reflection to get classes that implement interface in current assembly

S

Smokey Grindle

I am already doing this inside the main assembly that is executing, but I
want to get a list of all the classes inside itself that implement a certain
interface and make a list of them so I can instanciate them as an object.
How would I go about doing this without reloading the assembly? thanks!
 
M

Mattias Sjögren

I am already doing this inside the main assembly that is executing, but I
want to get a list of all the classes inside itself that implement a certain
interface and make a list of them so I can instanciate them as an object.
How would I go about doing this without reloading the assembly? thanks!

Assembly.GetExecutingAssembly will return a reference to the currently
executing assembly.


Mattias
 
S

Smokey Grindle

thanks just found that before i read ur message!

Mattias Sjögren said:
Assembly.GetExecutingAssembly will return a reference to the currently
executing assembly.


Mattias
 

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

Top