Class FallThroughOpCodeHandler
- Namespace
- Echo.Platforms.AsmResolver.Emulation.Dispatch
- Assembly
- Echo.Platforms.AsmResolver.dll
Provides a base for instruction handlers that finalize evaluation by increasing the program counter by the instruction's size.
public abstract class FallThroughOpCodeHandler : ICilOpCodeHandler
- Inheritance
-
FallThroughOpCodeHandler
- Implements
- Derived
- Inherited Members
Methods
Dispatch(CilExecutionContext, CilInstruction)
Evaluates a CIL instruction in the provided execution context.
public CilDispatchResult Dispatch(CilExecutionContext context, CilInstruction instruction)
Parameters
contextCilExecutionContextThe context to evaluate the instruction in.
instructionCilInstructionThe instruction to dispatch and evaluate.
Returns
- CilDispatchResult
A value indicating whether the dispatch was successful or caused an error.
DispatchInternal(CilExecutionContext, CilInstruction)
Evaluates a CIL instruction in the provided execution context, without increasing the program counter.
protected abstract CilDispatchResult DispatchInternal(CilExecutionContext context, CilInstruction instruction)
Parameters
contextCilExecutionContextThe context to evaluate the instruction in.
instructionCilInstructionThe instruction to dispatch and evaluate.
Returns
- CilDispatchResult
A value indicating whether the dispatch was successful or caused an error.