PageRenderTime 173ms CodeModel.GetById 170ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/LinFu.Proxy.Interfaces/IMethodBodyEmitter.cs

http://github.com/philiplaureano/LinFu
C# | 19 lines | 9 code | 1 blank | 9 comment | 0 complexity | 1ebfa5f801bd5333e738108a5cc6e16d MD5 | raw file
 1using System.Reflection;
 2using Mono.Cecil;
 3
 4namespace LinFu.Proxy.Interfaces
 5{
 6    /// <summary>
 7    ///     Represents a class that is responsible for
 8    ///     constructing method bodies.
 9    /// </summary>
10    public interface IMethodBodyEmitter
11    {
12        /// <summary>
13        ///     Generates the method body for the <paramref name="targetMethod">target method</paramref>.
14        /// </summary>
15        /// <param name="originalMethod">The original method that the <paramref name="targetMethod" /> will be based on.</param>
16        /// <param name="targetMethod">The method that will contain the method body to be emitted.</param>
17        void Emit(MethodInfo originalMethod, MethodDefinition targetMethod);
18    }
19}