On Fri, Jul 8, 2011 at 2:54 PM, Indiefreaks.com <[email protected]> wrote: >> Make a FieldReference and use that instead of a FieldDefinition in >> whatever place you're getting the error. > > But then I won't be able to add it to the class Fields collection: how > can I let the class type know of its existence then? > > Since FieldDefinition inherits from FieldReference, casting to > FieldReference should work, shouldn't it?
We have nice threads in this group about how to deal with generics. Look them up. Jb -- -- mono-cecil
