Ok, after a while on this topic, I decided to postpone Generics support to my profiler system until I got it right.
I'll let you know of my progress. Thanks On 8 juil, 16:37, Jb Evain <[email protected]> wrote: > On Fri, Jul 8, 2011 at 4:31 PM, Indiefreaks.com > > <[email protected]> wrote: > > By the way, I searched for such threads but I'm having difficulties > > finding one that actually talks about my issue: injecting a field in a > > generic class & injecting code to call this field in the generic class > > methods. > > You need to create one FieldDefinition for, well, the definition of > the field, and then for each usage, create a FieldReference with the > proper generic signature, based on the definition, search for > MakeGeneric* > > Jb -- -- mono-cecil
