Table of Contents

Class VBStringType

Namespace
RDCore.SDK.Model.Types
Assembly
RDCore.SDK.dll

A VBIntrinsicType<T> representing the String data type.

public record VBStringType : VBIntrinsicType<string?>, IEquatable<VBType>, IEquatable<VBIntrinsicType>, IEquatable<VBIntrinsicType<string?>>, IEquatable<VBStringType>
Inheritance
VBStringType
Implements
Derived
Inherited Members

Remarks

The managed type of a value of this data type is a nullable string.

Constructors

VBStringType()

A VBIntrinsicType<T> representing the String data type.

public VBStringType()

Remarks

The managed type of a value of this data type is a nullable string.

Properties

DefaultValue

Gets the default value for this data type.

public override VBTypedValue DefaultValue { get; }

Property Value

VBTypedValue

Remarks

⚠️ Derived types must back the implementation of this property with a thread-safe private static readonly Lazy<T>. Failure to do so would lock up the static context initialization of the StaticSymbol symbols.

TypeInfo

The String data type.

public static VBStringType TypeInfo { get; }

Property Value

VBStringType

Methods

CreateValue(IBindingHandle)

Creates a value of this type bound to handle.

public override VBTypedValue CreateValue(IBindingHandle handle)

Parameters

handle IBindingHandle

Returns

VBTypedValue

Remarks

The base implementation throws: only types that can hold a runtime value override this (matches the intent of the removed VBTypedValueFactory.CreateValue(VBType) switch, which returned null for the rest).