/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
- using System.Reflection;
- using Mono.Cecil;
- namespace LinFu.Proxy.Interfaces
- {
- /// <summary>
- /// Represents a class that generates methods based on other existing
- /// methods.
- /// </summary>
- public interface IMethodBuilder
- {
- /// <summary>
- /// Creates a method that matches the signature defined in the
- /// <paramref name="method" /> parameter.
- /// </summary>
- /// <param name="targetType">The type that will host the new method.</param>
- /// <param name="method">The method from which the signature will be derived.</param>
- MethodDefinition CreateMethod(TypeDefinition targetType, MethodInfo method);
- }
- }