Hi Regis,

On 1/9/08, Regis <[EMAIL PROTECTED]> wrote:

> else if (t.IsArray) // deal with complex arrays
>         elementType = new ArrayType (elementType /* R.Vaquette modified */,
> t.GetArrayRank());

Could you send here a complete (in unified diff format) patch of your
changes against SVN head?

It's done with the `svn diff` command, TortoiseSVN also have something
among those lines.

> My code might be difficult to give in some lines.
> In fact, the generated IL is:
>
> .method public hidebysig static void  Main() cil managed
> {
>   .entrypoint
>   // Code size       12 (0xc)
>   .maxstack  3
>   .locals init (string[0...,0...] V_0)
>   IL_0000:  ldc.i4.5
>   IL_0001:  ldc.i4.4
>   IL_0002:  newobj     instance void string[0...,0...]::.ctor(int32,
>                                                               int32)
>   IL_0007:  stloc      V_0
>   IL_000b:  ret
> } // end of method DecalreArraysSample::Main

Could you past the code that generated that?

> In fact, it is a bug because the signature generated by this method is
> different from the Reflectionhelper.GetMethodBaseSignature() return
> value, so the GetMemberReference() doesn't find a previously added
> reference.

Then it's likely that we have to change GetMethodBaseSignature, again,
I'd need some code that trigger the issue.

-- 
Jb Evain  <[EMAIL PROTECTED]>

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

Reply via email to