Table of Contents

Class UnboxHandlerBase

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

Provides a base for instructions implementing unboxing behavior.

public abstract class UnboxHandlerBase : CastOpCodeHandlerBase, ICilOpCodeHandler
Inheritance
UnboxHandlerBase
Implements
Derived
Inherited Members

Methods

GetReturnValue(CilExecutionContext, ObjectHandle, TypeSignature)

Transforms the resolved data address into a value to be pushed onto the stack.

protected abstract StackSlot GetReturnValue(CilExecutionContext context, ObjectHandle handle, TypeSignature targetType)

Parameters

context CilExecutionContext

The context in which the instruction is emulated in.

handle ObjectHandle

The address.

targetType TypeSignature

The data type of the value at the address.

Returns

StackSlot

The return value.

HandleSuccessfulCast(CilExecutionContext, ObjectHandle, TypeSignature)

Handles the case when the pushed value is compatible with the type specified in the instruction.

protected override CilDispatchResult HandleSuccessfulCast(CilExecutionContext context, ObjectHandle handle, TypeSignature targetType)

Parameters

context CilExecutionContext

The context to evaluate the instruction in.

handle ObjectHandle

The address of the object.

targetType TypeSignature

The type to convert the object to to.

Returns

CilDispatchResult

The final dispatcher result.