Table of Contents

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

context CilExecutionContext

The context to evaluate the instruction in.

instruction CilInstruction

The 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

context CilExecutionContext

The context to evaluate the instruction in.

instruction CilInstruction

The instruction to dispatch and evaluate.

field IFieldDescriptor

The field to perform the operation on.

Returns

CilDispatchResult

The dispatching result.