470,815 Members | 1,337 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

Tricky Reflection Question

Hi all.

Not sure if this is the correct group but hope so. I need to be able to
load an assembly and simply get a list of the types contained within that
assembly. This is easy to achieve using Assembly.LoadFrom and GetTypes but
once the assembly has been loaded it cannot be unloaded without the
application being restarted. I specifically need to always reload the dll
without closing the app. I have been through countless articles discussing
AppDomains and such like but they all seem to relate to loading an assembly
an executing a method rather than what I need to do. Can anyone post some
code or point me somewhere I might not have looked to get this to work.

Thanks.
May 22 '06 #1
1 851
maybe assembly.reflectiononlyload(string) will help you, if you use net 2

wolfgang
"John Faris" <jo*******@nospam.com> schrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP02.phx.gbl...
Hi all.

Not sure if this is the correct group but hope so. I need to be able to
load an assembly and simply get a list of the types contained within that
assembly. This is easy to achieve using Assembly.LoadFrom and GetTypes
but once the assembly has been loaded it cannot be unloaded without the
application being restarted. I specifically need to always reload the dll
without closing the app. I have been through countless articles
discussing AppDomains and such like but they all seem to relate to loading
an assembly an executing a method rather than what I need to do. Can
anyone post some code or point me somewhere I might not have looked to get
this to work.

Thanks.

May 22 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by A. Wiebenga | last post: by
2 posts views Thread by Dan | last post: by
7 posts views Thread by John | last post: by
5 posts views Thread by heddy | last post: by
5 posts views Thread by =?Utf-8?B?Q2hyaXN0aWFuIEhhdmVs?= | last post: by
17 posts views Thread by raylopez99 | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.