/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

  1. using System.Reflection;
  2. using Mono.Cecil;
  3. namespace LinFu.Proxy.Interfaces
  4. {
  5. /// <summary>
  6. /// Represents a class that is responsible for
  7. /// constructing method bodies.
  8. /// </summary>
  9. public interface IMethodBodyEmitter
  10. {
  11. /// <summary>
  12. /// Generates the method body for the <paramref name="targetMethod">target method</paramref>.
  13. /// </summary>
  14. /// <param name="originalMethod">The original method that the <paramref name="targetMethod" /> will be based on.</param>
  15. /// <param name="targetMethod">The method that will contain the method body to be emitted.</param>
  16. void Emit(MethodInfo originalMethod, MethodDefinition targetMethod);
  17. }
  18. }