Table of Contents

Class CastClassHandler

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

Implements a CIL instruction handler for castclass operations.

[DispatcherTableEntry(new CilCode[] { CilCode.Castclass })]
public class CastClassHandler : CastOpCodeHandlerBase, ICilOpCodeHandler
Inheritance
CastClassHandler
Implements
Inherited Members

Methods

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.