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

Reply via email to