vendredi 13 novembre 2015

Quickly Create an Instance of a Type Whose Assembly is Loaded in Reflection-Only Context

I am currently trying to create an instance of a type whose assembly is loaded into reflection-only context. I can easily invoke Assembly.Load() upon discovery of the Type I want to use, but the value of Type.Assembly remains as reflection-only until I find the Type again from the loaded assembly. Is there a way to automatically load an assembly upon attempts to create an instance of a type whose assembly is loaded into a reflection-only context?





Aucun commentaire:

Enregistrer un commentaire