|
-
April 6th, 2010, 03:28 PM
#1
Dynamic load Assembly from specific path
Hi,
I have been dynamically loading assemblies using this:
// paramType is "NamesSpace.TypeName, AssemblyName"
myType = Type.GetType(paramType);
myObj = Activator.CreateInstance(myType);
This works with my assembly being in the same bin path as my app. Now if there is a possibility that the assemblies can be loading from a different path, is there a way i can just change the paramType and load it from a different path without code changes.
If i need to make code changes to do like an Assembly.Load instead, can it support both versions with same code - local load and path load of assembly?
Thanks
Jubin
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|