Adds a rule to validate that the ILGenerator.Emit overload used is valid for specified OpCode. This is because the overload determines what bytes are emitted for the argument, but the opcode determines how those bytes will be interpreted ... and the emit method generally doesn't verify that they are the same.
Adds a rule to validate that the
ILGenerator.Emit
overload used is valid for specifiedOpCode
. This is because the overload determines what bytes are emitted for the argument, but the opcode determines how those bytes will be interpreted ... and the emit method generally doesn't verify that they are the same.