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
contextCilExecutionContextThe context to evaluate the instruction in.
handleObjectHandleThe address of the object.
targetTypeTypeSignatureThe type to convert the object to to.
Returns
- CilDispatchResult
The final dispatcher result.