Hey,

On Thu, Jun 16, 2011 at 4:08 AM, BBF <[email protected]> wrote:
> var elem = ClassB.foo[2,3];
>
> So I would do something like:
>
> Ldsfld FieldReference( ClassB.foo )
> ldc.i4.2
> ldc.i4.3
> ........... <-- call ClassA[...,...]::Get
>
> How can I reference the MethodReference "Get" of this array
> programatically ?

var classA = module.Import (classA); // get a reference to classA
var classAarray = new ArrayType (classA, 2); // 2 is the rank
var get = new MethodReference ("Get", classA, classAarray);

Jb

-- 
--
mono-cecil

Reply via email to