J
jianhua.he
I am working on an application in C#, it will load another managed
code library DLL in runtime, instead of write the following code:
Assembly asmb =
Assembly.LoadFrom("C:\\test\\AssemblyTest1\AssemblyTest1.dll");
object test = asmb.CreateInstance("AssemblyTest1.Test",
false, BindingFlags.CreateInstance, null, null,
CultureInfo.CurrentCulture, null);
....
I would like to write:
Assembly asmb =
Assembly.LoadFrom("C:\\test\\AssemblyTest1\AssemblyTest1.dll");
....
AssemblyTest1.Test test = new AssemblyTest1.Test();
How should I do this?
Thanks in advance
code library DLL in runtime, instead of write the following code:
Assembly asmb =
Assembly.LoadFrom("C:\\test\\AssemblyTest1\AssemblyTest1.dll");
object test = asmb.CreateInstance("AssemblyTest1.Test",
false, BindingFlags.CreateInstance, null, null,
CultureInfo.CurrentCulture, null);
....
I would like to write:
Assembly asmb =
Assembly.LoadFrom("C:\\test\\AssemblyTest1\AssemblyTest1.dll");
....
AssemblyTest1.Test test = new AssemblyTest1.Test();
How should I do this?
Thanks in advance