Hi,
On Sat, Jun 18, 2011 at 4:44 AM, BBF <[email protected]> wrote:
> While your code worked at compile time, I'm not sure it worked at run
> time.
> On the original code that I was trying to rewrite, the reference was
> for a Get(Int32,Int32), and my reference was only a Get().
Fair enough, but that's a really easy fix:
int rank = 2;
>> var classA = module.Import (classA); // get a reference to classA
>> var classAarray = new ArrayType (classA, rank);
>> var get = new MethodReference ("Get", classA, classAarray);
for (int i = 0; i < rank; i++)
get.Parameters.Add (new ParameterDefinition (classA));
Jb
--
--
mono-cecil