PageRenderTime 216ms CodeModel.GetById 111ms app.highlight 4ms RepoModel.GetById 97ms app.codeStats 0ms

/src/LinFu.AOP/Interfaces/ISurroundMethodBody.cs

http://github.com/philiplaureano/LinFu
C# | 22 lines | 9 code | 2 blank | 11 comment | 0 complexity | bc4312f1d83ae7b2c1323e2a1d322d66 MD5 | raw file
 1using Mono.Cecil.Cil;
 2
 3namespace LinFu.AOP.Cecil
 4{
 5    /// <summary>
 6    ///     Represents a type that can add a prolog and epilog instructions to a particular method body.
 7    /// </summary>
 8    public interface ISurroundMethodBody
 9    {
10        /// <summary>
11        ///     Adds a prolog to the given method body.
12        /// </summary>
13        /// <param name="IL">The <see cref="ILProcessor" /> that points to the given method body.</param>
14        void AddProlog(ILProcessor IL);
15
16        /// <summary>
17        ///     Adds an epilog to the given method body.
18        /// </summary>
19        /// <param name="IL">The <see cref="ILProcessor" /> that points to the given method body.</param>
20        void AddEpilog(ILProcessor IL);
21    }
22}