开发者

Multiple Assembly.Load(Byte[]), same instance or leak?

开发者 https://www.devze.com 2022-12-08 20:56 出处:网络
What happens when I call Assembly.Load(Byte[]) multiple times with a Byte array containing the same assembly ?

What happens when I call Assembly.Load(Byte[]) multiple times with a Byte array containing the same assembly ?

Will I get the same instance of Assembly for each call ?

Th开发者_Python百科e 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:

"Note that this method overload always creates a new Assembly object with its own mapping."

0

精彩评论

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