Table of Contents

Struct SetCoercionResult

Namespace
RDCore.SDK.Runtime.Shared
Assembly
RDCore.SDK.dll

The result of a MS-VBAL 5.5.2.2 Set-coercion (run-time semantics) evaluation.

public readonly record struct SetCoercionResult : IEquatable<SetCoercionResult>
Implements
Inherited Members

Constructors

SetCoercionResult(VBTypedValue?, VBRuntimeErrorInfo?)

The result of a MS-VBAL 5.5.2.2 Set-coercion (run-time semantics) evaluation.

public SetCoercionResult(VBTypedValue? Result, VBRuntimeErrorInfo? ErrorInfo)

Parameters

Result VBTypedValue

The coerced object reference, if the coercion succeeded.

ErrorInfo VBRuntimeErrorInfo

The run-time error metadata, if the coercion failed.

Properties

ErrorInfo

The run-time error metadata, if the coercion failed.

public VBRuntimeErrorInfo? ErrorInfo { get; init; }

Property Value

VBRuntimeErrorInfo

IsSuccess

true if the coercion succeeded.

public bool IsSuccess { get; }

Property Value

bool

Result

The coerced object reference, if the coercion succeeded.

public VBTypedValue? Result { get; init; }

Property Value

VBTypedValue

Methods

Error(VBRuntimeErrorInfo)

Creates a new (failed) SetCoercionResult with the specified error metadata.

public static SetCoercionResult Error(VBRuntimeErrorInfo error)

Parameters

error VBRuntimeErrorInfo

Returns

SetCoercionResult

Success(VBTypedValue)

Creates a new (successful) SetCoercionResult with the specified coerced value.

public static SetCoercionResult Success(VBTypedValue result)

Parameters

result VBTypedValue

Returns

SetCoercionResult