Hi Jb Evain, I thought that, thank you for your affirmation.
I am missing one thing to implement this: when I have a reference to say List<int>, I can get System.Int32 through ((GenericInstanceType)myReference).GenericArguments. How can I get the information that System.Int32 is actually generic parameter "T"? In debugger I can see that myReference has property Mono.Cecil.IGenericContext.Type, which contains the GenericParameter "T", but the Mono.Cecil.IGenericContext interface is internal. Steves On 28 dub, 13:10, Jb Evain <[email protected]> wrote: > Hi Steves, > > On Wed, Apr 27, 2011 at 6:10 PM, Steves <[email protected]> wrote: > > but is there > > any way how I could implement my extension method? > > You just have to memorize what arguments are used to instantiate the > generics instances, and apply them on top of the definitions. -- -- mono-cecil
