Table of Contents

Class RunValue

Namespace
RDCore.SDK.Platform.Protocol
Assembly
RDCore.SDK.Protocol.dll

A constant on the wire: the value of a data row's argument, of a fake's answer, or of an argument a faked call was given.

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

Remarks

The value is text in the invariant culture, written and read the same way on both ends:

TypeNameValue
Empty, Nullnull.
BooleanTrue or False.
Byte, Integer, Long, LongLongInvariant integer text.
Single, DoubleRound-trip (R) text.
Currency, DecimalInvariant decimal text, with no exponent.
Date ISO 8601 yyyy-MM-ddTHH:mm:ss. The date part alone is midnight; the time part alone (HH:mm:ss) is on 1899-12-30.
StringThe string itself.
ErrorThe error number, as CVErr takes it (MS-VBAL §6.1.2.3.1.14).
Object In an FakeInvocationRecord only: the object's TypeName, or null for Nothing.

Arrays and user-defined types do not travel: a data row or an answer that needs one is refused with a reason, and an argument of either in a record is written with its TypeName and a null value.

Constructors

RunValue(string, string?)

A constant on the wire: the value of a data row's argument, of a fake's answer, or of an argument a faked call was given.

public RunValue(string TypeName, string? Value)

Parameters

TypeName string

The name of the value's type, such as Long.

Value string

The value as text, as the table in the remarks says for TypeName.

Remarks

The value is text in the invariant culture, written and read the same way on both ends:

TypeNameValue
Empty, Nullnull.
BooleanTrue or False.
Byte, Integer, Long, LongLongInvariant integer text.
Single, DoubleRound-trip (R) text.
Currency, DecimalInvariant decimal text, with no exponent.
Date ISO 8601 yyyy-MM-ddTHH:mm:ss. The date part alone is midnight; the time part alone (HH:mm:ss) is on 1899-12-30.
StringThe string itself.
ErrorThe error number, as CVErr takes it (MS-VBAL §6.1.2.3.1.14).
Object In an FakeInvocationRecord only: the object's TypeName, or null for Nothing.

Arrays and user-defined types do not travel: a data row or an answer that needs one is refused with a reason, and an argument of either in a record is written with its TypeName and a null value.

Properties

TypeName

The name of the value's type, such as Long.

public string TypeName { get; init; }

Property Value

string

Value

The value as text, as the table in the remarks says for TypeName.

public string? Value { get; init; }

Property Value

string