/src/LinFu.AOP/Interfaces/IInstructionEmitter.cs

http://github.com/philiplaureano/LinFu · C# · 16 lines · 8 code · 1 blank · 7 comment · 0 complexity · 14196a443df247078009793b198e05cb MD5 · raw file

  1. using Mono.Cecil.Cil;
  2. namespace LinFu.AOP.Cecil.Interfaces
  3. {
  4. /// <summary>
  5. /// Represents a type that is capable of manipulating instructions within a given method body.
  6. /// </summary>
  7. public interface IInstructionEmitter
  8. {
  9. /// <summary>
  10. /// Emits a set of instructions to the given <paramref name="IL">CilWorker</paramref>.
  11. /// </summary>
  12. /// <param name="IL">The <see cref="ILProcessor" /> responsible for the target method body.</param>
  13. void Emit(ILProcessor IL);
  14. }
  15. }