Table of Contents

Class LdcI4Handler

Namespace
Echo.Platforms.AsmResolver.Emulation.Dispatch.Constants
Assembly
Echo.Platforms.AsmResolver.dll

Implements a CIL instruction handler for ldc.i4 operations.

[DispatcherTableEntry(new CilCode[] { CilCode.Ldc_I4, CilCode.Ldc_I4_0, CilCode.Ldc_I4_1, CilCode.Ldc_I4_2, CilCode.Ldc_I4_3, CilCode.Ldc_I4_4, CilCode.Ldc_I4_5, CilCode.Ldc_I4_6, CilCode.Ldc_I4_7, CilCode.Ldc_I4_8, CilCode.Ldc_I4_S, CilCode.Ldc_I4_M1 })]
public class LdcI4Handler : FallThroughOpCodeHandler, ICilOpCodeHandler
Inheritance
LdcI4Handler
Implements
Inherited Members

Methods

DispatchInternal(CilExecutionContext, CilInstruction)

Evaluates a CIL instruction in the provided execution context, without increasing the program counter.

protected override CilDispatchResult DispatchInternal(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.