Table of Contents

Struct TypeInitializerResult

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

Describes a result of a type initialization.

public readonly struct TypeInitializerResult
Inherited Members

Properties

ExceptionObject

Gets the exception that was thrown when initialization the type, if any.

public ObjectHandle ExceptionObject { get; }

Property Value

ObjectHandle

IsNoAction

Gets a value indicating whether the type initialization does not require any further action.

public bool IsNoAction { get; }

Property Value

bool

IsRedirectedToConstructor

Gets a value indicating whether control was redirected to the class constructor of a type.

public bool IsRedirectedToConstructor { get; }

Property Value

bool

Methods

Exception(ObjectHandle)

Creates a result that throws a type initialization exception.

public static TypeInitializerResult Exception(ObjectHandle exception)

Parameters

exception ObjectHandle

The exception that was thrown.

Returns

TypeInitializerResult

The result.

NoAction()

Creates a result that indicates no further action was taken.

public static TypeInitializerResult NoAction()

Returns

TypeInitializerResult

The result.

Redirected()

Creates a result that indicates control was redirected to a class constructor.

public static TypeInitializerResult Redirected()

Returns

TypeInitializerResult

The result.

ToDispatchResult()

Transforms the type initialization result into a CilDispatchResult.

public CilDispatchResult ToDispatchResult()

Returns

CilDispatchResult

The new dispatcher result.