Aha, I see. Generics, as always. :)

What does GetMemberReferences() do anyway? Looks up each and every reference
(usage) in the module?

Thanks!

2011/5/22 Jb Evain <[email protected]>

> On Sat, May 21, 2011 at 10:34 PM, Gábor Kozár <[email protected]>
> wrote:
> > LookupToken(67116333) then returns the field, as expected.
> > So it appears that either you're looking up the wrong token, or,
> > GetMemberReferences() is buggy.
>
> The issue is that this token represents a generic instance, and
> there's no generic context for Cecil to create this instance.
> GetMemberReferences, which is there only for reading purpose, creates
> a fake context so you can see the different member referenced by the
> module.
>
> In this case, LookupToken is exact, it's not supported to create a
> generic instance from an empty context.
>
> Jb
>
> --
> --
> mono-cecil

-- 
--
mono-cecil

Reply via email to