开发者

Do I need to explicity unload an assembly I loaded dynamically?

开发者 https://www.devze.com 2023-01-11 18:22 出处:网络
I am using some .NET assemblies another developer wrote for use from an older VB6 application. They are only used for some of our customers so I am using the Assembly.LoadFrom(file) method and invokin

I am using some .NET assemblies another developer wrote for use from an older VB6 application. They are only used for some of our customers so I am using the Assembly.LoadFrom(file) method and invoking the methods. I am worried about unloading / releasin开发者_如何学Gog the objects after I make the calls. Do I need to do something explicitly, or will the garbage collector take care of it automatically?


You can't unload an assembly.

(The closest you can come to that is loading it into an AppDomain that you then unload.)

0

精彩评论

暂无评论...
验证码 换一张
取 消