Method Emit
Emit(OpCode, ParameterDefinition)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode, ParameterDefinition parameter)
Parameters
opcodeOpCode- The instruction opcode.
parameterParameterDefinition- 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
opcodeOpCode- The instruction opcode.
variableVariableDefinition- 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
opcodeOpCode- The instruction opcode.
targetsInstruction[]- 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
opcodeOpCode- The instruction opcode.
targetInstruction- 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
opcodeOpCode- The instruction opcode.
fieldFieldReference- 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
opcodeOpCode- The instruction opcode.
typeTypeReference- The instruction operand.
Returns
- ILCursor
- this
Emit(OpCode)
Emit a new instruction at this cursor's current position.
public ILCursor Emit(OpCode opcode)
Parameters
opcodeOpCode- 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
opcodeOpCode- The instruction opcode.
methodMethodReference- 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
opcodeOpCode- The instruction opcode.
methodMethodBase- 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.