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(Symbol, VBBooleanValue)

public static VBBooleanValue CreateBooleanValue(Symbol symbol, VBBooleanValue value)

Parameters

symbol Symbol
value VBBooleanValue

Returns

VBBooleanValue

CreateBooleanValue(Symbol, bool)

public static VBBooleanValue CreateBooleanValue(Symbol symbol, bool value)

Parameters

symbol Symbol
value bool

Returns

VBBooleanValue

CreateBooleanValue(Symbol, double)

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

public static VBBooleanValue CreateBooleanValue(Symbol symbol, double numericValue)

Parameters

symbol Symbol

The symbol to be associated with the new value.

numericValue double

Returns

VBBooleanValue

CreateNullValue(Symbol)

Creates a new VBNullValue for the specified Symbol.

public static VBNullValue CreateNullValue(Symbol symbol)

Parameters

symbol Symbol

The symbol to be associated with the new value.

Returns

VBNullValue

CreateStringValue(Symbol, VBStringValue)

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

public static VBTypedValue CreateStringValue(Symbol symbol, VBStringValue stringValue)

Parameters

symbol Symbol

The symbol to be associated with the new value.

stringValue VBStringValue

The underlying (managed) string value being wrapped.

Returns

VBTypedValue

CreateStringValue(Symbol, string)

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

public static VBStringValue CreateStringValue(Symbol symbol, string stringValue)

Parameters

symbol Symbol

The symbol to be associated with the new value.

stringValue string

The underlying (managed) string value being wrapped.

Returns

VBStringValue

CreateValue(Symbol, VBDateValue)

public static VBTypedValue CreateValue(Symbol symbol, VBDateValue value)

Parameters

symbol Symbol
value VBDateValue

Returns

VBTypedValue

CreateValue(Symbol, bool)

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

public static VBBooleanValue CreateValue(Symbol symbol, bool boolValue)

Parameters

symbol Symbol

The symbol to be associated with the new value.

boolValue bool

The underying (managed) bool value being wrapped.

Returns

VBBooleanValue

CreateValue(Symbol, DateTime)

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

public static VBDateValue CreateValue(Symbol symbol, DateTime dateTimeValue)

Parameters

symbol Symbol

The symbol to be associated with the new value.

dateTimeValue DateTime

The underying (managed) DateTime value being wrapped.

Returns

VBDateValue

CreateValue(VBType, Symbol)

Creates a new VBTypedValue of the specified VType

public static VBTypedValue? CreateValue(VBType type, Symbol symbol)

Parameters

type VBType

The VBType of the value to create.

symbol Symbol

The Symbol to be associated with the new value.

Returns

VBTypedValue

CreateValue(VBType, Symbol, double)

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

public static VBTypedValue CreateValue(VBType type, Symbol symbol, double numericValue)

Parameters

type VBType

The target numeric VBType.

symbol Symbol

The symbol to be associated with the new value.

numericValue double

The underlying (managed) numeric value being wrapped.

Returns

VBTypedValue

CreateValue(VBTypeDescValue, Symbol, VBNumericTypedValue)

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

public static VBTypedValue CreateValue(VBTypeDescValue typeDesc, Symbol symbol, VBNumericTypedValue source)

Parameters

typeDesc VBTypeDescValue

A VBTypeDescValue describing the target numeric data type.

symbol Symbol

The symbol to be associated with the new value.

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, Symbol, VBDateValue)

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

public static VBTypedValue CreateValue(VBTypeDescValue typeDesc, Symbol symbol, VBDateValue source)

Parameters

typeDesc VBTypeDescValue

A VBTypeDescValue describing the target numeric data type.

symbol Symbol

The symbol to be associated with the new value.

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, Symbol, double)

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

public static VBTypedValue CreateValue(VBTypeDescValue typeDesc, Symbol symbol, double numericValue)

Parameters

typeDesc VBTypeDescValue

A VBTypeDescValue describing the target numeric data type.

symbol Symbol

The symbol to be associated with the new value.

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<TNumericType>(TNumericType, Symbol, double)

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

public static VBNumericTypedValue CreateValue<TNumericType>(TNumericType type, Symbol symbol, double numericValue) where TNumericType : VBNumericType, INumericType

Parameters

type TNumericType

The target numeric VBType.

symbol Symbol

The symbol to be associated with the new value.

numericValue double

The underlying (managed) numeric value being wrapped.

Returns

VBNumericTypedValue

Type Parameters

TNumericType

The target numeric VBType data type.

CreateVariant(VBTypedValue, Symbol)

Creates a new Variant value wrapping the specified VBTypedValue.

public static VBVariantValue CreateVariant(VBTypedValue wrapped, Symbol symbol)

Parameters

wrapped VBTypedValue

The VBTypedValue to be wrapped.into a Variant.

symbol Symbol

The symbol to be associated with the resulting value.

Returns

VBVariantValue

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

DescribeType(VBType, Symbol)

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

public static VBTypeDescValue DescribeType(VBType type, Symbol symbol)

Parameters

type VBType

The VBType to describe.

symbol Symbol

The Symbol to be associated with the value.

Returns

VBTypeDescValue