C# 클래스 Mono.Cecil.Inject.ILUtils

Miscellaneous utilities used by the injector.
파일 보기 프로젝트 열기: denikson/Mono.Cecil.Inject 1 사용 예제들

공개 메소드들

메소드 설명
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