Class CallbackMethodInvoker
- Namespace
- Echo.Platforms.AsmResolver.Emulation.Invocation
- Assembly
- Echo.Platforms.AsmResolver.dll
Wraps a MethodHandler delegate into a IMethodInvoker.
public class CallbackMethodInvoker : IMethodInvoker
- Inheritance
-
CallbackMethodInvoker
- Implements
- Inherited Members
- Extension Methods
Constructors
CallbackMethodInvoker(MethodHandler)
Wraps a MethodHandler delegate into a IMethodInvoker.
public CallbackMethodInvoker(MethodHandler handler)
Parameters
handlerMethodHandlerThe delegate to wrap.
Methods
Invoke(CilExecutionContext, IMethodDescriptor, IList<BitVector>)
Invokes or emulates an external method.
public InvocationResult Invoke(CilExecutionContext context, IMethodDescriptor method, IList<BitVector> arguments)
Parameters
contextCilExecutionContextThe execution context the call originates from.
methodIMethodDescriptorThe method to invoke.
argumentsIList<BitVector>The arguments to invoke the method with.
Returns
- InvocationResult
The result