reflection to get classes that implement interface in current assembly

  • Thread starter Thread starter Smokey Grindle
  • Start date Start date
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!
 
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
 
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
 
Back
Top