Class RunValue
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:
| TypeName | Value |
|---|---|
Empty, Null | null. |
Boolean | True or False. |
Byte, Integer, Long, LongLong | Invariant integer text. |
Single, Double | Round-trip (R) text. |
Currency, Decimal | Invariant 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.
|
String | The string itself. |
Error | The 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
TypeNamestringThe name of the value's type, such as
Long.ValuestringThe 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:
| TypeName | Value |
|---|---|
Empty, Null | null. |
Boolean | True or False. |
Byte, Integer, Long, LongLong | Invariant integer text. |
Single, Double | Round-trip (R) text. |
Currency, Decimal | Invariant 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.
|
String | The string itself. |
Error | The 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
Value
The value as text, as the table in the remarks says for TypeName.
public string? Value { get; init; }