Hey Daniel,

On 1/5/09, Daniel Cazzulino <[email protected]> wrote:
>  var asm =
> AssemblyFactory.GetAssembly(this.GetType().Assembly.Location);
> // for some typedefinitions in that assembly, for all its methods:
>  var objectRef =
> asm.MainModule.TypeReferences.Add(typeof(object));
>  var ins = il.Create(OpCodes.Newobj, objectRef);

Aren't your extensions methods duplicating the Import code?

I mean, you can do:

var type_obj = module.Import (typeof (object));

Does that work for you?

-- 
Jb Evain  <[email protected]>

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

Reply via email to