PEAPI

CILInstructions Methods

The methods of the CILInstructions class are listed below. For a complete list of CILInstructions class members, see the CILInstructions Members topic.

Public Instance Methods

AddTryBlock
Branch Add a branch instruction
calli Add the calli instruction
CodeLabel Add a label to the CIL instructions
emitbyte Add a byte to the CIL instructions (.emitbyte)
EndCatchBlock Mark this position as the end of the last started block and make it a catch block. This catch block is associated with the specified try block.
EndFaultBlock Mark this position as the end of the last started block and make it a fault block. This fault block is associated with the specified try block.
EndFilterBlock Mark this position as the end of the last started block and make it a filter block. This filter block is associated with the specified try block.
EndFinallyBlock Mark this position as the end of the last started block and make it a finally block. This finally block is associated with the specified try block.
EndTryBlock Mark this position as the end of the last started block and make it a try block. This try block is added to the current instructions (ie do not need to call AddTryBlock)
Equals (inherited from Object)Select the method name to go to the Microsoft documentation.
FieldInst Add an instruction with a field parameter
GetHashCode (inherited from Object)Select the method name to go to the Microsoft documentation.
GetType (inherited from Object)Select the method name to go to the Microsoft documentation.
Inst Add a simple IL instruction
IntInst Add an IL instruction with an integer parameter
ldc_i8 Add the load long instruction
ldc_r4 Add the load float32 instruction
ldc_r8 Add the load float64 instruction
ldstr Add the load string instruction
LoadArg Add the instruction to load an argument on TOS. This method selects the correct instruction based on the value of argNo
LoadArgAdr Add the instruction to load the address of an argument on TOS. This method selects the correct instruction based on the value of argNo.
LoadLocal Add the instruction to load a local on TOS. This method selects the correct instruction based on the value of locNo.
LoadLocalAdr Add the instruction to load the address of a local on TOS. This method selects the correct instruction based on the value of locNo.
MethInst Add an instruction with a method parameter
NewCodedLabel Create a new label at this position in the code buffer
NewLabel Create a new CIL label. To place the label in the CIL instruction stream use CodeLabel.
PushFalse Add an instruction to push the boolean value false on TOS
PushInt Add an instruction which puts an integer on TOS. This method selects the correct instruction based on the value of the integer.
PushLong Add the instruction to load a long on TOS
PushTrue Add an instruction to push the boolean value true on TOS
StartBlock Mark this position as the start of a new block (try, catch, filter, finally or fault)
StoreArg Add the instruction to store to an argument. This method selects the correct instruction based on the value of argNo.
StoreLocal Add the instruction to store to a local. This method selects the correct instruction based on the value of locNo.
Switch Add a switch instruction
ToString (inherited from Object)Select the method name to go to the Microsoft documentation.
TypeInst Add an instruction with a type parameter

Protected Instance Methods

Finalize (inherited from Object)Select the method name to go to the Microsoft documentation.
MemberwiseClone (inherited from Object)Select the method name to go to the Microsoft documentation.

See Also

CILInstructions Class | PEAPI Namespace