Monday 25 November 2013

Reflection-Only Load Context

Loading an assembly into a reflection-only load context, means loading it for inspection rather than execution (according to MSDN).  The load can be performed on a string, revealing the FQDN of the assembly, or an array of bytes, in the underlying COFF-format.

ReflectionOnlyLoad(string)
ReflectionOnlyLoad(byte[])

To load for execution, it must be loaded into an execution context. Note that dependencies are not automatically loaded in Reflection-only load.

No comments: