Table of Contents

Class VBTypedValueFactory

Namespace
RDCore.SDK.Model.Values
Assembly
RDCore.SDK.dll

A utility factory for creating new VBTypedValue instances.

public static class VBTypedValueFactory
Inheritance
VBTypedValueFactory
Inherited Members

Methods

CreateBooleanValue(bool)

Creates a new VBBooleanValue with the specified value for the specified symbol.

public static VBBooleanValue CreateBooleanValue(bool value)

Parameters

value bool

Returns

VBBooleanValue

CreateBooleanValue(double)

Creates a new VBBooleanValue with the specified value for the specified symbol.

public static VBBooleanValue CreateBooleanValue(double numericValue)

Parameters

numericValue double

Returns

VBBooleanValue

CreateNullValue()

Creates a new VBNullValue for the specified Symbol.

public static VBNullValue CreateNullValue()

Returns

VBNullValue

CreateStringValue(string)

Creates a new VBStringValue with the specified value, for the specified symbol.

public static VBStringValue CreateStringValue(string stringValue)

Parameters

stringValue string

The underlying (managed) string value being wrapped.

Returns

VBStringValue

CreateValue(VBType)

Creates a new VBTypedValue of the specified VType

public static VBTypedValue? CreateValue(VBType type)

Parameters

type VBType

The VBType of the value to create.

Returns

VBTypedValue

CreateValue(VBType, double)

Creates a new VBNumericValue of the specified type, with the specified value, for the specified symbol.

public static VBTypedValue CreateValue(VBType type, double numericValue)

Parameters

type VBType

The target numeric VBType.

numericValue double

The underlying (managed) numeric value being wrapped.

Returns

VBTypedValue

CreateValue(VBTypeDescValue, VBNumericTypedValue)

Creates a new VBNumericValue of the specified described type, with the specified value, for the specified symbol.

public static VBTypedValue CreateValue(VBTypeDescValue typeDesc, VBNumericTypedValue source)

Parameters

typeDesc VBTypeDescValue

A VBTypeDescValue describing the target numeric data type.

source VBNumericTypedValue

A VBNumericTypedValue source value.

Returns

VBTypedValue

Remarks

👉 Overloads taking a VBTypeDescValue type descriptor value parameter are intended for let-coercion semantics and may eventually need to be moved.

CreateValue(VBTypeDescValue, VBDateValue)

Creates a new VBNumericValue of the specified described type, with the specified value, for the specified symbol.

public static VBTypedValue CreateValue(VBTypeDescValue typeDesc, VBDateValue source)

Parameters

typeDesc VBTypeDescValue

A VBTypeDescValue describing the target numeric data type.

source VBDateValue

A VBDateValue source value.

Returns

VBTypedValue

Remarks

👉 Overloads taking a VBTypeDescValue type descriptor value parameter are intended for let-coercion semantics and may eventually need to be moved.

CreateValue(VBTypeDescValue, IRuntimeValue)

Creates a new VBNumericValue of the specified described type, with the specified value, for the specified symbol.

public static VBTypedValue CreateValue(VBTypeDescValue typeDesc, IRuntimeValue managedValue)

Parameters

typeDesc VBTypeDescValue

A VBTypeDescValue describing the target numeric data type.

managedValue IRuntimeValue

The underlying (managed) numeric value being wrapped.

Returns

VBTypedValue

Remarks

👉 Overloads taking a VBTypeDescValue type descriptor value parameter are intended for let-coercion semantics and may eventually need to be moved.

CreateValue(VBTypeDescValue, double)

Creates a new VBNumericValue of the specified described type, with the specified value, for the specified symbol.

public static VBTypedValue CreateValue(VBTypeDescValue typeDesc, double numericValue)

Parameters

typeDesc VBTypeDescValue

A VBTypeDescValue describing the target numeric data type.

numericValue double

The underlying (managed) numeric value being wrapped.

Returns

VBTypedValue

Remarks

👉 Overloads taking a VBTypeDescValue type descriptor value parameter are intended for let-coercion semantics and may eventually need to be moved.

CreateValue(bool)

Creates a new VBBooleanValue with the specified value for the specified symbol.

public static VBBooleanValue CreateValue(bool boolValue)

Parameters

boolValue bool

The underying (managed) bool value being wrapped.

Returns

VBBooleanValue

CreateValue(DateTime)

Creates a new VBDateValue with the specified value for the specified symbol.

public static VBDateValue CreateValue(DateTime dateTimeValue)

Parameters

dateTimeValue DateTime

The underying (managed) DateTime value being wrapped.

Returns

VBDateValue

CreateVariant(VBTypedValue)

Creates a new Variant value wrapping the specified VBTypedValue.

public static VBVariantValue CreateVariant(VBTypedValue wrapped)

Parameters

wrapped VBTypedValue

The VBTypedValue to be wrapped.into a Variant.

Returns

VBVariantValue

A VBVariantValue with a SubType matching the data type of the wrapped value.

DescribeType(VBType)

Creates a new VBTypeDescValue, which is a meta-VBTypedValue representing a VBType.

public static VBTypeDescValue DescribeType(VBType type)

Parameters

type VBType

The VBType to describe.

Returns

VBTypeDescValue