How to unload the .dll using c#?

后端 未结 3 479
梦如初夏
梦如初夏 2021-01-21 07:05

I am using .dll reference to my application. i want to unload the .dll in a button click event. How to do it ???

3条回答
  •  清歌不尽
    2021-01-21 07:35

    See also the answer to Implementing .NET plug-ins without AppDomains. Note the discussion in the comments, where they point out that it very slowly leaks memory.

提交回复
热议问题