[mono-cecil] call instruction: get information about static, instance, etc...

2016-09-22 Thread Pietro Ferrara
Hi all, I'm pretty sure I'm missing something easy here, but I have been struggling with this for a while and I didn't find a solution around. I have a (not a callvirt!) call instruction. This instruction has a metadata token (see III.3.19 of the 6th edition ECMA-335 standard) that determines

Re: [mono-cecil] call instruction: get information about static, instance, etc...

2016-09-22 Thread Jb Evain
Hi Pietro, The call instruction will have a MethodReference operand. The MethodReference will have a .HasThis property, telling you if it's an instance method (which has a this argument) or a static method. Jb On Thu, Sep 22, 2016 at 8:40 AM, Pietro Ferrara wrote: >