C# Класс LinFu.AOP.Cecil.InterceptMethodBody

Represents a method rewriter type that adds interception capabilities to any given method body.
Наследование: BaseMethodRewriter
Показать файл Открыть проект

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

Метод Описание
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