Hey Max,

On 6/15/07, Max Bolingbroke <[EMAIL PROTECTED]> wrote:
> > MethodReference hasValueReference = new
> > MethodReference("get_HasValue", parameter.ParameterType,
> > module.Import(typeof(bool)), true, false, MethodCallingConvention.Default);

Yep, and you'll probably have to add this method to the
MemberReferences collection of the module.

That should get you rid of the invalid token.

-- 
Jb

--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to