5
어셈블리를로드하고 클래스를 찾고 Run () 메서드를 호출하는 올바른 방법
샘플 콘솔 프로그램. class Program { static void Main(string[] args) { // ... code to build dll ... not written yet ... Assembly assembly = Assembly.LoadFile(@"C:\dyn.dll"); // don't know what or how to cast here // looking for a better way to do next 3 lines IRunnable r = assembly.CreateInstance("TestRunner"); …
81
c#
.net
reflection