Hi,
In Reflection.Emit of the .Net Framework library operand type of the
constrained. instruction is InlineType. In Partition III CIL of known
stanadard it is also said:
"The constrained prefix will be immediately followed by a callvirt
instruction. thisType shall be a valid typedef, typeref, or typespec
metadata token."
But in the source code of Mono.Cecil 0.6 (OpCodes.cs), which was
downloaded from site:
public static readonly OpCode Constrained = new OpCode (
"constrained.", 0xfe, 0x16, 2,
Code.Constrained, FlowControl.Next,
OpCodeType.Prefix, OperandType.InlineTok, // !!!!
StackBehaviour.Pop0, StackBehaviour.Push0);
Is it bug? or - does it have some reasons, which i don't know?
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---