Table of Contents

Class ExternalCallAnswer

Namespace
RDCore.SDK.Runtime.Abstract.Execution
Assembly
RDCore.SDK.dll

What an answered call yields, in place of running it: the answer of a fake.

public sealed record ExternalCallAnswer : IEquatable<ExternalCallAnswer>
Inheritance
ExternalCallAnswer
Implements
Inherited Members

Constructors

ExternalCallAnswer(VBTypedValue?, IVBRaisableError?, ImmutableArray<ExternalCallAssignment>)

What an answered call yields, in place of running it: the answer of a fake.

public ExternalCallAnswer(VBTypedValue? Result, IVBRaisableError? Error = null, ImmutableArray<ExternalCallAssignment> Assignments = default)

Parameters

Result VBTypedValue

The value the call returns: null for a Sub, and when Error is set.

Error IVBRaisableError

The error the call raises at its call site, as the member would raise its own: null when it returns.

Assignments ImmutableArray<ExternalCallAssignment>

The ByRef arguments the call writes before it returns or raises. Empty when it writes none.

Properties

Assignments

The ByRef arguments the call writes, in order. Empty when it writes none.

public ImmutableArray<ExternalCallAssignment> Assignments { get; init; }

Property Value

ImmutableArray<ExternalCallAssignment>

Error

The error the call raises at its call site, as the member would raise its own: null when it returns.

public IVBRaisableError? Error { get; init; }

Property Value

IVBRaisableError

Result

The value the call returns: null for a Sub, and when Error is set.

public VBTypedValue? Result { get; init; }

Property Value

VBTypedValue

Methods

Raising(IVBRaisableError)

The answer of a call that raises error.

public static ExternalCallAnswer Raising(IVBRaisableError error)

Parameters

error IVBRaisableError

The error raised at the call site.

Returns

ExternalCallAnswer

Returning(VBTypedValue?)

The answer of a call that returns result.

public static ExternalCallAnswer Returning(VBTypedValue? result)

Parameters

result VBTypedValue

The value returned: null for a Sub.

Returns

ExternalCallAnswer