Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the MethodWeaver class.
 /// </summary>
 /// <param name="rewriter">The <see cref="IMethodRewriter"/> instance that will modify the existing method.</param>
 /// <param name="instructionProvider">The provider that will obtain the original instructions for the target method.</param>
 /// <param name="filter">The filter that determines which methods should be modified.</param>        
 public MethodWeaver(IMethodRewriter rewriter, IInstructionProvider instructionProvider,
                     Func<MethodReference, bool> filter)
 {
     _filter = filter;
     _rewriter = rewriter;
     _instructionProvider = instructionProvider;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the MethodWeaver class.
 /// </summary>
 /// <param name="rewriter">The <see cref="IMethodRewriter"/> instance that will modify the existing method.</param>
 /// <param name="instructionProvider">The provider that will obtain the original instructions for the target method.</param>
 /// <param name="filter">The filter that determines which methods should be modified.</param>
 public MethodWeaver(IMethodRewriter rewriter, IInstructionProvider instructionProvider,
                     Func <MethodReference, bool> filter)
 {
     _filter              = filter;
     _rewriter            = rewriter;
     _instructionProvider = instructionProvider;
 }