ILGenerator.Emit Method (OpCode, SByte)

Puts the specified instruction and character argument onto the Microsoft intermediate language (MSIL) stream of instructions.

This API is not CLS-compliant. 

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public void Emit(
	OpCode opcode,
	sbyte arg


Type: System.Reflection.Emit.OpCode

The MSIL instruction to be put onto the stream.

Type: System.SByte

The character argument pushed onto the stream immediately after the instruction.

The instruction values are defined in the OpCodes enumeration.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft