Way to remove MSIL instructions from ILGenerator.Emit()ed MSIL instruction stream?

Robert Beyne 1 Reputation point
2021-11-09T00:35:55.557+00:00

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()?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,370 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,238 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,119 questions
{count} votes