load dll

314 단어 load
Assembly myassembly = Assembly.LoadFrom("testdll.dll");
Type type = myassembly.GetType("testdll.Class1");

object instance = Activator.Createinstance(type);
MethodInfo[] methods = type.GetMethods();
object res = methods[0].Invoke(instance, new object[] {5, 3});

좋은 웹페이지 즐겨찾기