When two types are not the same: Assembly Load Contexts Subtleties (via: All Your Base Are Belong To Us)
Posted by jpluimers on 2014/01/09
Reading c# – Type.IsSubclassOf does not behave as expected – Stack Overflow, I found this very interesting link via Assembly Load Contexts Subtleties at Sasha Goldshtein’s blog (I love the name of the blog: All Your Base Are Belong To Us).
He explains the reasons for the error message
System.InvalidCastException: Unable to cast object of type ‘Plugin.MyPlugin’ to type ‘Plugin.MyPlugin’.
Actually his blog entry is an abstract of a 200+ page thesis on that is also recommended reading: Flexible Dynamic Linkin for .NET (by Anders Aaltonen, Alex Buckley and Susan Eisenbach).
–jeroen
via:
Leave a Reply