Hi everybody,
I have a block of IL -Code.
*****
L_0000: ldtoken [System.Windows.Forms]System.Windows.Forms.Application
L_0005: br.s L_001e
L_0007: ldc.i4 0x20e6
*****
When I try to get the value of operand of the br.s IL-Instruction to
know where the branch instruction jumps to. Here is the code.
*****
if (mMember.Body.Instructions[nIndexInstruction].OpCode == OpCodes.Br
|| mMember.Body.Instructions[nIndexInstruction].OpCode ==
OpCodes.Br_S)
{
mMember.Body.Instructions[nIndexInstruction].Operand.ToString();
}
else
*****
The value of the operand is "Mono.Cecil.Cil.Instruction". I would like
to ask what I should do to know where the instruction jumps to.
Thank you.
rca.
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---