Activator.CreateInstance question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

Is it possible to call Activator.CreateInstance if the type is not compiled into an assembly. For instance if I drop a DLL into the same folder where executable is running, will the executable be able to create a type that is defined in this DLL

If not, what is the way to do this

-thanks
 
Yes, but you need to load the assembly into the app domain first. Or, use
the overload of CreateInstance that supports doing this in one swoop.


--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/


sean said:
Hello-

Is it possible to call Activator.CreateInstance if the type is not
compiled into an assembly. For instance if I drop a DLL into the same folder
where executable is running, will the executable be able to create a type
that is defined in this DLL?
 
Back
Top