Hi, "Call"? I'm not sure what this instruction has to do with calls.
Anyway, you can determine the type by looking at what the constant gets assigned to (locals, args, fields, etc...), but even then, that's not a sure-fire way since such casts are IIRC implicit in CIL. Regards, Alex On Mon, Aug 22, 2011 at 10:59 PM, deedee <[email protected]> wrote: > Hi, > > How can I determine what kind of call it is, if an instruction > contains ldc.i4 X, X being the number? > For example: > > char c = '$' ; > The instruction for the '$' is ldc.i4 36 > > Also, the instruction for the 36th item of an enum will also be ldc.i4 > 36. > > Is there a way to know from the instruction, which instruction belongs > to which call? > > Thanks, > > -- > -- > mono-cecil -- -- mono-cecil
