C# Класс Mono.Cecil.Inject.ILUtils

Miscellaneous utilities used by the injector.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CopyInstruction ( Instruction ins ) : Instruction

Creates a new IL instruction that is a copy of the provided one. Does not link the new instruction to a method.

ReplaceInstruction ( Instruction original, Instruction newIns ) : void

Replaces the insturction with another by replacing the opcode and the operand. Unlike ILProcessor.Replace, preserves the references to the original instruction (which branches might use, for instance).

Описание методов

CopyInstruction() публичный статический Метод

Creates a new IL instruction that is a copy of the provided one. Does not link the new instruction to a method.
public static CopyInstruction ( Instruction ins ) : Instruction
ins Mono.Cecil.Cil.Instruction Instruction to copy.
Результат Mono.Cecil.Cil.Instruction

ReplaceInstruction() публичный статический Метод

Replaces the insturction with another by replacing the opcode and the operand. Unlike ILProcessor.Replace, preserves the references to the original instruction (which branches might use, for instance).
public static ReplaceInstruction ( Instruction original, Instruction newIns ) : void
original Mono.Cecil.Cil.Instruction The instruction to replace.
newIns Mono.Cecil.Cil.Instruction The instruction to replace with.
Результат void