Class FieldOpCodeHandler
- Namespace
- Echo.Platforms.AsmResolver.Emulation.Dispatch.ObjectModel
- Assembly
- Echo.Platforms.AsmResolver.dll
Represents a handler that handles opcodes related to field access.
public abstract class FieldOpCodeHandler : ICilOpCodeHandler
- Inheritance
-
FieldOpCodeHandler
- 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, IFieldDescriptor)
Handles the actual operation on the field.
protected abstract CilDispatchResult DispatchInternal(CilExecutionContext context, CilInstruction instruction, IFieldDescriptor field)
Parameters
contextCilExecutionContextThe context to evaluate the instruction in.
instructionCilInstructionThe instruction to dispatch and evaluate.
fieldIFieldDescriptorThe field to perform the operation on.
Returns
- CilDispatchResult
The dispatching result.