PageRenderTime 166ms CodeModel.GetById 120ms app.highlight 5ms RepoModel.GetById 36ms app.codeStats 0ms

/src/LinFu.AOP/Interfaces/IMethodBodyRewriter.cs

http://github.com/philiplaureano/LinFu
C# | 20 lines | 10 code | 1 blank | 9 comment | 0 complexity | 467bbdaf92906745a359d983ab958894 MD5 | raw file
 1using System.Collections.Generic;
 2using Mono.Cecil;
 3using Mono.Cecil.Cil;
 4
 5namespace LinFu.AOP.Cecil.Interfaces
 6{
 7    /// <summary>
 8    ///     Represents a type that can modify method bodies.
 9    /// </summary>
10    public interface IMethodBodyRewriter
11    {
12        /// <summary>
13        ///     Rewrites a target method using the given ILProcessor.
14        /// </summary>
15        /// <param name="method">The target method.</param>
16        /// <param name="IL">The ILProcessor that will be used to rewrite the target method.</param>
17        /// <param name="oldInstructions">The original instructions from the target method body.</param>
18        void Rewrite(MethodDefinition method, ILProcessor IL, IEnumerable<Instruction> oldInstructions);
19    }
20}