|
클래스를 참조하지 않은 상태에서, DLL로부터 동적으로 클래스를 로드해서 써야 할 경우가 있다. 그럴 때는 .NET에서 제공하는 Reflection API를 사용해서 클래스를 로드하고 인스턴스화할 수 있다. 다음 코드와 같이 사용하면 된다.
System.Reflection.Assembly assm = System.Reflection.Assembly.LoadFile(@"D:AssembliesSomeAssembly.dll"); object obj = assm.CreateInstance("FullClassName");
|
카테고리
이전블로그
최근 등록된 덧글
자료 좀 들고갑니다 ^ - ^
by 롯데팬 at 10/27 너무 귀여워요!!!♡ by 와우 at 02/15 정말 며칠동안 고민한 .. by 고민 at 11/10 감사합니다. 많은 도움이.. by 유향미 at 11/21 http://media.paran... by vf2416 at 05/30 최근 등록된 트랙백
Does sibutramine real..
by Sibutramine from us p.. Lortab for cheap. by Lortab. Meridia. by Meridia diet pill. Meridia sibutramine. by 15 mg sibutramine from.. Percocet vs oxycod.. by Order percocet online. 이글루 파인더
|