Hi, There's nothing in the metadata to resolve to: those methods are created on the fly by the runtime.
Jb On Fri, Jul 24, 2015 at 10:36 AM, Andrei F <[email protected]> wrote: > > >> public static void Test() >> { >> var vals = new int[1, 1]; >> } > > > When I add this method to an assembly, read it using Cecil and try to > resolve the instruction that calls the ctor of the array, this attempt fails > (the Resolve method returns null). The said instruction looks like this: > >> + [3] {IL_0003: newobj System.Void >> System.Int32[0...,0...]::.ctor(System.Int32,System.Int32)} >> Mono.Cecil.Cil.Instruction > > > Looks like a bug? > > -- > -- > -- > mono-cecil > --- > You received this message because you are subscribed to the Google Groups > "mono-cecil" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- -- -- mono-cecil --- You received this message because you are subscribed to the Google Groups "mono-cecil" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
