Reputation: 782
Given an Assembly object, how to determine whether this assembly is loaded by Assembly.Load(byte[])
?
Currently, I use Module.FullyQualifiedName
. According to MSDN:
If the assembly for this module was loaded from a byte array then the FullyQualifiedName for the module will be: <Unknown>.
But apparently the value is depends on language of the system...
Upvotes: 1
Views: 208
Reputation: 39085
How about bool isFromBytes = module.FullQualifiedName.StartsWith("<")
Upvotes: 1