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
machineCilVirtualMachineThe 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
threadCilThreadThe thread the initialization is to be called on.
typeITypeDescriptorThe 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
typeITypeDescriptorThe type that failed to initialize.
innerExceptionObjectHandleThe exception object that describes the failure.
Returns
- ObjectHandle
The resulting TypeInitializationException instance.