PageRenderTime 110ms CodeModel.GetById 68ms app.highlight 2ms RepoModel.GetById 39ms app.codeStats 0ms

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