/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
- using System.Reflection;
- using Mono.Cecil;
- namespace LinFu.Proxy.Interfaces
- {
- /// <summary>
- /// Represents a class that is responsible for
- /// constructing method bodies.
- /// </summary>
- public interface IMethodBodyEmitter
- {
- /// <summary>
- /// Generates the method body for the <paramref name="targetMethod">target method</paramref>.
- /// </summary>
- /// <param name="originalMethod">The original method that the <paramref name="targetMethod" /> will be based on.</param>
- /// <param name="targetMethod">The method that will contain the method body to be emitted.</param>
- void Emit(MethodInfo originalMethod, MethodDefinition targetMethod);
- }
- }