/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

  1. using Mono.Cecil.Cil;
  2. namespace LinFu.AOP.Cecil
  3. {
  4. /// <summary>
  5. /// Represents a type that can add a prolog and epilog instructions to a particular method body.
  6. /// </summary>
  7. public interface ISurroundMethodBody
  8. {
  9. /// <summary>
  10. /// Adds a prolog to the given method body.
  11. /// </summary>
  12. /// <param name="IL">The <see cref="ILProcessor" /> that points to the given method body.</param>
  13. void AddProlog(ILProcessor IL);
  14. /// <summary>
  15. /// Adds an epilog to the given method body.
  16. /// </summary>
  17. /// <param name="IL">The <see cref="ILProcessor" /> that points to the given method body.</param>
  18. void AddEpilog(ILProcessor IL);
  19. }
  20. }