Hi Jb, I finally got it working. Thanks for your help!
Regards, Philip Laureano On Apr 1, 10:52 pm, Jb Evain <[email protected]> wrote: > On 4/1/09, Philip_L <[email protected]> wrote: > > > > > System.ArgumentException: The context parameter is not a generic type > > at Mono.Cecil.ModuleDefinition.CheckGenericParameterProvider > > (IGenericParameterProvider context) in C:\Documents and Settings > > \Administrator\Desktop\Development\cecil\lib\Mono.Cecil > > \ModuleDefinition.cs: line 213 > > As I said, you need to make sure that the method have the same set of > GenericParameters than the method you're trying to override. > > So when you create the new MethodDefinition, make sure you create the > same number of GenericParameter as its «base» method, add them to the > .GenericParameters collection, and the Import will succeed. > > -- > Jb Evain <[email protected]> --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
