C# 클래스 LinFu.AOP.Cecil.Extensions.InvocationInfoExtensions

Adds helper methods classes that implement the IInvocationInfo interface.
파일 보기 프로젝트 열기: philiplaureano/LinFu

공개 메소드들

메소드 설명
Emit ( this emitter, MethodInfo method, Mono.Cecil.MethodDefinition targetMethod, Mono.Cecil.Cil.VariableDefinition invocationInfo ) : void

Emits the IL instructions that will store information about the method currently being executed and stores the results into the variable.

Proceed ( this info ) : object

Invokes the currently executing method by using the IInvocationInfo.Target as the target instance, the IInvocationInfo.TargetMethod as the method, and uses the IInvocationInfo.Arguments for the method arguments.

Proceed ( this info, object target ) : object

Invokes the currently executing method by using the target as the target instance, the IInvocationInfo.TargetMethod as the method, and uses the IInvocationInfo.Arguments for the method arguments.

메소드 상세

Emit() 공개 정적인 메소드

Emits the IL instructions that will store information about the method currently being executed and stores the results into the variable.
public static Emit ( this emitter, MethodInfo method, Mono.Cecil.MethodDefinition targetMethod, Mono.Cecil.Cil.VariableDefinition invocationInfo ) : void
emitter this The instance.
method System.Reflection.MethodInfo The method whose implementation will be intercepted.
targetMethod Mono.Cecil.MethodDefinition The actual method that will contain the resulting instructions.
invocationInfo Mono.Cecil.Cil.VariableDefinition The local variable that will store the current instance.
리턴 void

Proceed() 공개 정적인 메소드

Invokes the currently executing method by using the IInvocationInfo.Target as the target instance, the IInvocationInfo.TargetMethod as the method, and uses the IInvocationInfo.Arguments for the method arguments.
public static Proceed ( this info ) : object
info this The instance that contains information about the method call itself.
리턴 object

Proceed() 공개 정적인 메소드

Invokes the currently executing method by using the target as the target instance, the IInvocationInfo.TargetMethod as the method, and uses the IInvocationInfo.Arguments for the method arguments.
public static Proceed ( this info, object target ) : object
info this The instance that contains information about the method call itself.
target object The target instance that will handle the method call.
리턴 object