/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

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