PageRenderTime 31ms CodeModel.GetById 28ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/LinFu.Proxy.Interfaces/IMethodBuilder.cs

http://github.com/philiplaureano/LinFu
C# | 20 lines | 9 code | 1 blank | 10 comment | 0 complexity | 1b2fbbf835a85843819da4c90b06f66f MD5 | raw file
 1using System.Reflection;
 2using Mono.Cecil;
 3
 4namespace LinFu.Proxy.Interfaces
 5{
 6    /// <summary>
 7    ///     Represents a class that generates methods based on other existing
 8    ///     methods.
 9    /// </summary>
10    public interface IMethodBuilder
11    {
12        /// <summary>
13        ///     Creates a method that matches the signature defined in the
14        ///     <paramref name="method" /> parameter.
15        /// </summary>
16        /// <param name="targetType">The type that will host the new method.</param>
17        /// <param name="method">The method from which the signature will be derived.</param>
18        MethodDefinition CreateMethod(TypeDefinition targetType, MethodInfo method);
19    }
20}