/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
- using System.Collections.Generic;
- using Mono.Cecil;
- using Mono.Cecil.Cil;
- namespace LinFu.AOP.Cecil.Interfaces
- {
- /// <summary>
- /// Represents a type that can provide the instructions for a given method.
- /// </summary>
- public interface IInstructionProvider
- {
- /// <summary>
- /// Determines the instructions for a given method.
- /// </summary>
- /// <param name="method">The source method that contains the instructions.</param>
- /// <returns>The set of instructions for the given method.</returns>
- IEnumerable<Instruction> GetInstructions(MethodDefinition method);
- }
- }