多个Assembly.Load(Byte []),相同实例还是泄漏? [英] Multiple Assembly.Load(Byte[]), same instance or leak?
本文介绍了多个Assembly.Load(Byte []),相同实例还是泄漏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用包含相同程序集的Byte数组多次调用Assembly.Load(Byte [])时会发生什么?
What happens when I call Assembly.Load(Byte[]) multiple times with a Byte array containing the same assembly ?
每次调用都会得到相同的Assembly实例吗?
Will I get the same instance of Assembly for each call ?
同一个程序集在应用程序域中多次加载?
The same assembly loaded multiple times within the app domain ???
推荐答案
You will get a new Assembly object with each call, read the documentation, there is a note near the end:
请注意,此方法重载总是使用其自己的映射创建一个新的Assembly对象."
"Note that this method overload always creates a new Assembly object with its own mapping."
这篇关于多个Assembly.Load(Byte []),相同实例还是泄漏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文