Class ReturnConstantInvoker
- Namespace
- Echo.Platforms.AsmResolver.Emulation.Invocation
- Assembly
- Echo.Platforms.AsmResolver.dll
Implements a method invoker that always steps over the requested method and returns a specific value.
public class ReturnConstantInvoker : IMethodInvoker
- Inheritance
-
ReturnConstantInvoker
- Implements
- Inherited Members
- Extension Methods
Constructors
ReturnConstantInvoker(BitVector)
Implements a method invoker that always steps over the requested method and returns a specific value.
public ReturnConstantInvoker(BitVector value)
Parameters
valueBitVectorThe value to return.
Properties
Value
Gets the value to return.
public BitVector Value { get; }
Property Value
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