Way to remove MSIL instructions from ILGenerator.Emit()ed MSIL instruction stream?
Robert Beyne
1
Reputation point
Emit methods on the ILGenerator Class in the System.Reflection.Emit namespace put the specified instruction onto the Microsoft intermediate language (MSIL) stream of instructions. Is there any way to remove one or more of the MSIL instructions last Emit()ed into the stream of instructions? After DynamicMethod() variable Invoke()?