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

The core class containing all the injector methods.
파일 보기 프로젝트 열기: denikson/Mono.Cecil.Inject 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Assert void
InjectionDefinition System

공개 메소드들

메소드 설명
Inject ( Instruction startCode, int token, InjectDirection direction = InjectDirection.Before ) : void

Inject the call of the injection method into the target.

Inject ( int startCode, int token, InjectDirection direction = InjectDirection.Before ) : void

Inject the call of the injection method into the target.

InjectionDefinition ( MethodDefinition injectTarget, MethodDefinition injectMethod, InjectFlags flags, int localVarIDs = null ) : System

Attempts to construct an instance of InjectionDefinition by linking the injection method with the injection target (the method to be injected). The way how the method is injected is specified by the injection flags. If the injection method does not match the criteria set by the injection flags, an exception will be thrown.

비공개 메소드들

메소드 설명
Assert ( bool val, string message ) : void
InjectionDefinition ( ) : System

메소드 상세

Inject() 공개 메소드

Inject the call of the injection method into the target.
public Inject ( Instruction startCode, int token, InjectDirection direction = InjectDirection.Before ) : void
startCode Mono.Cecil.Cil.Instruction The instruction from which to start injecting.
token int /// If is specified, the value of this parameter will be passed as a /// parameter to the injection method. ///
direction InjectDirection The direction in which to insert the call: either above the start code or below it.
리턴 void

Inject() 공개 메소드

Inject the call of the injection method into the target.
public Inject ( int startCode, int token, InjectDirection direction = InjectDirection.Before ) : void
startCode int /// The index of the instruction from which to start injecting. If positive, will count from the /// beginning of the method. If negative, will count from the end. For instance, -1 is the method's last instruction /// and 0 is the first. ///
token int /// If is specified, the value of this parameter will be passed as a /// parameter to the injection method. ///
direction InjectDirection The direction in which to insert the call: either above the start code or below it.
리턴 void

InjectionDefinition() 공개 메소드

Attempts to construct an instance of InjectionDefinition by linking the injection method with the injection target (the method to be injected). The way how the method is injected is specified by the injection flags. If the injection method does not match the criteria set by the injection flags, an exception will be thrown.
public InjectionDefinition ( MethodDefinition injectTarget, MethodDefinition injectMethod, InjectFlags flags, int localVarIDs = null ) : System
injectTarget MethodDefinition The method that will be injected.
injectMethod MethodDefinition The method which to inject.
flags InjectFlags Injection flags that specify what values to pass to the injection method and how to inject it.
localVarIDs int /// An array of indicies of local variables to pass to the injection method. Used only if /// is specified, otherwise ignored. ///
리턴 System