/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
- using Mono.Cecil.Cil;
- namespace LinFu.AOP.Cecil
- {
- /// <summary>
- /// Represents a type that can add a prolog and epilog instructions to a particular method body.
- /// </summary>
- public interface ISurroundMethodBody
- {
- /// <summary>
- /// Adds a prolog to the given method body.
- /// </summary>
- /// <param name="IL">The <see cref="ILProcessor" /> that points to the given method body.</param>
- void AddProlog(ILProcessor IL);
- /// <summary>
- /// Adds an epilog to the given method body.
- /// </summary>
- /// <param name="IL">The <see cref="ILProcessor" /> that points to the given method body.</param>
- void AddEpilog(ILProcessor IL);
- }
- }