Hey, On 7/17/08, LOBOMINATOR <[EMAIL PROTECTED]> wrote: > I was playing around with Cecil and wanted to change a types method > definition and than load over the AssemblyFactory the runtime assembly > create an instance of the modified type and give it back to the > caller. Unfortunately the debugger crashes when I try to cast the > modified type to the previous one. Is there a way to do such an > operation?
Obviously, the JIT will throw an exception as the types are different. You need to either sublass the type, or make them share an interface that the caller will use. -- Jb Evain <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
