C# 클래스 LinFu.AOP.Cecil.InterceptMethodBody

Represents a method rewriter type that adds interception capabilities to any given method body.
상속: BaseMethodRewriter
파일 보기 프로젝트 열기: philiplaureano/LinFu

공개 메소드들

메소드 설명
InterceptMethodBody ( bool>.Func methodFilter ) : System

Initializes a new instance of the InterceptMethodBody class.

보호된 메소드들

메소드 설명
RewriteMethodBody ( Mono.Cecil.MethodDefinition method, Mono.Cecil.Cil.CilWorker IL, IEnumerable oldInstructions ) : void

Rewrites the instructions in the target method body.

ShouldRewrite ( Mono.Cecil.MethodDefinition targetMethod ) : bool

Determines whether or not the given method should be modified.

비공개 메소드들

메소드 설명
AddOriginalInstructions ( Mono.Cecil.Cil.CilWorker IL, IEnumerable oldInstructions ) : void
IsExcluded ( Mono.Cecil.MethodDefinition method ) : bool

메소드 상세

InterceptMethodBody() 공개 메소드

Initializes a new instance of the InterceptMethodBody class.
public InterceptMethodBody ( bool>.Func methodFilter ) : System
methodFilter bool>.Func The method filter that will determine the methods with the method bodies that will be intercepted.
리턴 System

RewriteMethodBody() 보호된 메소드

Rewrites the instructions in the target method body.
protected RewriteMethodBody ( Mono.Cecil.MethodDefinition method, Mono.Cecil.Cil.CilWorker IL, IEnumerable oldInstructions ) : void
method Mono.Cecil.MethodDefinition The target method.
IL Mono.Cecil.Cil.CilWorker The instance that represents the method body.
oldInstructions IEnumerable The IL instructions of the original method body.
리턴 void

ShouldRewrite() 보호된 메소드

Determines whether or not the given method should be modified.
protected ShouldRewrite ( Mono.Cecil.MethodDefinition targetMethod ) : bool
targetMethod Mono.Cecil.MethodDefinition The target method.
리턴 bool