Class VBTypedValueFactory
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
symbolSymbolvalueVBBooleanValue
Returns
CreateBooleanValue(Symbol, bool)
public static VBBooleanValue CreateBooleanValue(Symbol symbol, bool value)
Parameters
Returns
CreateBooleanValue(Symbol, double)
Creates a new VBBooleanValue with the specified value for the specified symbol.
public static VBBooleanValue CreateBooleanValue(Symbol symbol, double numericValue)
Parameters
Returns
CreateNullValue(Symbol)
Creates a new VBNullValue for the specified Symbol.
public static VBNullValue CreateNullValue(Symbol symbol)
Parameters
symbolSymbolThe symbol to be associated with the new value.
Returns
CreateStringValue(Symbol, VBStringValue)
Creates a new VBStringValue with the specified value, for the specified symbol.
public static VBTypedValue CreateStringValue(Symbol symbol, VBStringValue stringValue)
Parameters
symbolSymbolThe symbol to be associated with the new value.
stringValueVBStringValueThe underlying (managed) string value being wrapped.
Returns
CreateStringValue(Symbol, string)
Creates a new VBStringValue with the specified value, for the specified symbol.
public static VBStringValue CreateStringValue(Symbol symbol, string stringValue)
Parameters
symbolSymbolThe symbol to be associated with the new value.
stringValuestringThe underlying (managed) string value being wrapped.
Returns
CreateValue(Symbol, VBDateValue)
public static VBTypedValue CreateValue(Symbol symbol, VBDateValue value)
Parameters
symbolSymbolvalueVBDateValue
Returns
CreateValue(Symbol, bool)
Creates a new VBBooleanValue with the specified value for the specified symbol.
public static VBBooleanValue CreateValue(Symbol symbol, bool boolValue)
Parameters
symbolSymbolThe symbol to be associated with the new value.
boolValueboolThe underying (managed)
boolvalue being wrapped.
Returns
CreateValue(Symbol, DateTime)
Creates a new VBDateValue with the specified value for the specified symbol.
public static VBDateValue CreateValue(Symbol symbol, DateTime dateTimeValue)
Parameters
symbolSymbolThe symbol to be associated with the new value.
dateTimeValueDateTimeThe underying (managed)
DateTimevalue being wrapped.
Returns
CreateValue(VBType, Symbol)
Creates a new VBTypedValue of the specified VType
public static VBTypedValue? CreateValue(VBType type, Symbol symbol)
Parameters
typeVBTypeThe
VBTypeof the value to create.symbolSymbolThe
Symbolto be associated with the new value.
Returns
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
typeVBTypeThe target numeric
VBType.symbolSymbolThe symbol to be associated with the new value.
numericValuedoubleThe underlying (managed) numeric value being wrapped.
Returns
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
typeDescVBTypeDescValueA
VBTypeDescValuedescribing the target numeric data type.symbolSymbolThe symbol to be associated with the new value.
sourceVBNumericTypedValueA VBNumericTypedValue source value.
Returns
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
typeDescVBTypeDescValueA
VBTypeDescValuedescribing the target numeric data type.symbolSymbolThe symbol to be associated with the new value.
sourceVBDateValueA VBDateValue source value.
Returns
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
typeDescVBTypeDescValueA
VBTypeDescValuedescribing the target numeric data type.symbolSymbolThe symbol to be associated with the new value.
numericValuedoubleThe underlying (managed) numeric value being wrapped.
Returns
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
typeTNumericTypeThe target numeric
VBType.symbolSymbolThe symbol to be associated with the new value.
numericValuedoubleThe underlying (managed) numeric value being wrapped.
Returns
Type Parameters
TNumericTypeThe target numeric
VBTypedata type.
CreateVariant(VBTypedValue, Symbol)
Creates a new Variant value wrapping the specified VBTypedValue.
public static VBVariantValue CreateVariant(VBTypedValue wrapped, Symbol symbol)
Parameters
wrappedVBTypedValueThe
VBTypedValueto be wrapped.into aVariant.symbolSymbolThe symbol to be associated with the resulting value.
Returns
- VBVariantValue
A
VBVariantValuewith aSubTypematching the data type of thewrappedvalue.
DescribeType(VBType, Symbol)
Creates a new VBTypeDescValue, which is a meta-VBTypedValue representing a VBType.
public static VBTypeDescValue DescribeType(VBType type, Symbol symbol)