Struct InvocationResult
- Namespace
- Echo.Platforms.AsmResolver.Emulation.Invocation
- Assembly
- Echo.Platforms.AsmResolver.dll
Describes the result of an invocation of an external method.
public readonly struct InvocationResult
- Inherited Members
Properties
ExceptionObject
When ResultType is Exception, gets the handle to the exception object that was thrown.
public ObjectHandle ExceptionObject { get; }
Property Value
IsInconclusive
Gets a value indicating whether the invocation was inconclusive and not handled yet.
public bool IsInconclusive { get; }
Property Value
IsSuccess
Determines whether the invocation was successful.
public bool IsSuccess { get; }
Property Value
ResultType
Gets the type of result this object contains.
public InvocationResultType ResultType { get; }
Property Value
Value
When ResultType is StepOver, gets the value that the method returned (if available).
public BitVector? Value { get; }
Property Value
Methods
Exception(ObjectHandle)
Constructs a new failed invocation result with the provided pointer to an exception object describing the error that occurred.
public static InvocationResult Exception(ObjectHandle exceptionObject)
Parameters
exceptionObjectObjectHandleThe handle to the exception object that was thrown.
Returns
- InvocationResult
The result.
FullyHandled()
Constructs a new conclusive invocation result, where the invocation was fully emulated by the invoker.
public static InvocationResult FullyHandled()
Returns
Inconclusive()
Constructs a new inconclusive invocation result, where the invocation was not handled yet.
public static InvocationResult Inconclusive()
Returns
StepIn()
Constructs a new conclusive invocation result, where the invocation was handled as a step-in action.
public static InvocationResult StepIn()
Returns
StepOver(BitVector?)
Constructs a new conclusive invocation result, where the invocation was fully handled by the invoker and a result was produced.
public static InvocationResult StepOver(BitVector? value)
Parameters
valueBitVectorThe result that was produced by the method, or
nullif the method does not return a value.