...snip...

> which works...but the problem now is that all of the properties are
> PropertyDefinitions, and their getters and setters are
> MethodDefintions, which is true...but if the base type comes from
> another assembly, that's not technically true. I ended up getting all
> sorts of [ERROR: INVALID TOKEN] things showing up in ILDasm because
> there is no method defintion in the current assembly.

Just fixed that by doing this:

propertyGetter.DeclaringType.Module.Assembly !=
@this.Module.Assembly ?
    @this.Module.Import(propertyGetter) : propertyGetter
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to