using System.Reflection;
Assembly asm = Assembly.LoadFrom("file.dll");
Type type = asm.GetType("namespace.classpath");
object obj = Activator.CreateInstance(type);
Or
object obj = Activator.CreateInstance(type, new object[] {param1, param2, param3, ...});
Do any casting if needed.
No comments:
Post a Comment