Hi,

I'm trying to do the same thing: I loop through all the instructions from a 
body to see which methods are executed.

However the Instruction.Operand and the method.Body.Variables only contain 
the base class reference.

How can I get the reference to the overridden class? Is it determined at 
runtime? (because Visual Studio also links to the wrong class if I click 
'go to definition')

Thanks,


On Tuesday, 2 August 2011 17:18:08 UTC+2, deedee wrote:
>
> Thanks all! That really solves my problem :)
>
> On Tue, Aug 2, 2011 at 3:02 AM, Jb Evain <[email protected] 
> <javascript:>>wrote:
>
>> Hi,
>>
>> On Tue, Aug 2, 2011 at 10:49 AM, Alex <[email protected] <javascript:>> 
>> wrote:
>> > given ldarg.2, you would fetch method.Parameters [2]
>>
>> It actually depends whether the method is an instance method or not.
>>
>> Jb
>>
>> --
>> --
>> mono-cecil
>
>
>
>
> -- 
> Vidisha Ghosh
>
>

-- 
--
mono-cecil

Reply via email to