/src/LinFu.AOP/Interfaces/IInstructionProvider.cs

http://github.com/philiplaureano/LinFu · C# · 19 lines · 10 code · 1 blank · 8 comment · 0 complexity · 9689d3efa320bdd9bfa6250659bf2d0d MD5 · raw file

  1. using System.Collections.Generic;
  2. using Mono.Cecil;
  3. using Mono.Cecil.Cil;
  4. namespace LinFu.AOP.Cecil.Interfaces
  5. {
  6. /// <summary>
  7. /// Represents a type that can provide the instructions for a given method.
  8. /// </summary>
  9. public interface IInstructionProvider
  10. {
  11. /// <summary>
  12. /// Determines the instructions for a given method.
  13. /// </summary>
  14. /// <param name="method">The source method that contains the instructions.</param>
  15. /// <returns>The set of instructions for the given method.</returns>
  16. IEnumerable<Instruction> GetInstructions(MethodDefinition method);
  17. }
  18. }