Method Emit
Emit(OpCode, ParameterDefinition)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, ParameterDefinition parameter)
Parameters
opcode
OpCode- The instruction opcode.
parameter
ParameterDefinition- The instruction operand.
Returns
- ILCursor
- this
Emit(OpCode, VariableDefinition)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, VariableDefinition variable)
Parameters
opcode
OpCode- The instruction opcode.
variable
VariableDefinition- The instruction operand.
Returns
- ILCursor
- this
Emit(OpCode, Instruction[])
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, Instruction[] targets)
Parameters
opcode
OpCode- The instruction opcode.
targets
Instruction[]- The instruction operand.
Returns
- ILCursor
- this
Emit(OpCode, Instruction)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, Instruction target)
Parameters
opcode
OpCode- The instruction opcode.
target
Instruction- The instruction operand.
Returns
- ILCursor
- this
Emit(OpCode, double)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, double value)
Parameters
Returns
- ILCursor
- this
Emit(OpCode, float)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, float value)
Parameters
Returns
- ILCursor
- this
Emit(OpCode, long)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, long value)
Parameters
Returns
- ILCursor
- this
Emit(OpCode, sbyte)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, sbyte value)
Parameters
Returns
- ILCursor
- this
Emit(OpCode, byte)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, byte value)
Parameters
Returns
- ILCursor
- this
Emit(OpCode, string)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, string value)
Parameters
Returns
- ILCursor
- this
Emit(OpCode, FieldReference)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, FieldReference field)
Parameters
opcode
OpCode- The instruction opcode.
field
FieldReference- The instruction operand.
Returns
- ILCursor
- this
Emit(OpCode, CallSite)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, CallSite site)
Parameters
Returns
- ILCursor
- this
Emit(OpCode, TypeReference)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, TypeReference type)
Parameters
opcode
OpCode- The instruction opcode.
type
TypeReference- The instruction operand.
Returns
- ILCursor
- this
Emit(OpCode)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode)
Parameters
opcode
OpCode- The instruction opcode.
Returns
- ILCursor
- this
Emit(OpCode, int)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, int value)
Parameters
Returns
- ILCursor
- this
Emit(OpCode, MethodReference)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, MethodReference method)
Parameters
opcode
OpCode- The instruction opcode.
method
MethodReference- The instruction operand.
Returns
- ILCursor
- this
Emit(OpCode, FieldInfo)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, FieldInfo field)
Parameters
Returns
- ILCursor
- this
Emit(OpCode, MethodBase)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, MethodBase method)
Parameters
opcode
OpCode- The instruction opcode.
method
MethodBase- The instruction operand.
Returns
- ILCursor
- this
Emit(OpCode, Type)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, Type type)
Parameters
Returns
- ILCursor
- this
Emit(OpCode, object)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, object operand)
Parameters
Returns
- ILCursor
- this
Emit<T>(OpCode, string)
Emit a new instruction at this cursor's current position, accessing a given member.
public ILCursor Emit<T>(OpCode opcode, string memberName)
Parameters
Returns
- ILCursor
- this
Type Parameters
T
- The type in which the member is defined.