Table of Contents

Class RuntimeTypeManager

Namespace
Echo.Platforms.AsmResolver.Emulation.Runtime
Assembly
Echo.Platforms.AsmResolver.dll

Provides a mechanism for initialization and management of types residing in a virtual machine.

public sealed class RuntimeTypeManager
Inheritance
RuntimeTypeManager
Inherited Members

Constructors

RuntimeTypeManager(CilVirtualMachine)

Creates a new runtime type manager.

public RuntimeTypeManager(CilVirtualMachine machine)

Parameters

machine CilVirtualMachine

The machine the type is made for.

Methods

HandleInitialization(CilThread, ITypeDescriptor)

Handles the type initialization on the provided thread.

public TypeInitializerResult HandleInitialization(CilThread thread, ITypeDescriptor type)

Parameters

thread CilThread

The thread the initialization is to be called on.

type ITypeDescriptor

The type to initialize.

Returns

TypeInitializerResult

The initialization result.

RegisterInitializationException(ITypeDescriptor, ObjectHandle)

Registers the event that a type has failed to initialize.

public ObjectHandle RegisterInitializationException(ITypeDescriptor type, ObjectHandle innerException)

Parameters

type ITypeDescriptor

The type that failed to initialize.

innerException ObjectHandle

The exception object that describes the failure.

Returns

ObjectHandle

The resulting TypeInitializationException instance.