471,122 Members | 1,125 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,122 software developers and data experts.

Activator.CreateInstance question

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
Jul 21 '05 #1
1 1225
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" <an*******@discussions.microsoft.com> wrote in message
news:8C**********************************@microsof t.com...
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

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by David Sworder | last post: by
2 posts views Thread by shmeian | last post: by
3 posts views Thread by System.Reflection Activator | last post: by
1 post views Thread by Johnny R | last post: by
1 post views Thread by Dan Dorey | last post: by
reply views Thread by Jon Skeet [C# MVP] | last post: by
reply views Thread by =?Utf-8?B?QW5kcmV3?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.