Table of Contents

Class VBByteType

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

A VBNumericType<T> representing the Byte data type.

public sealed record VBByteType : VBNumericType<byte>, IEquatable<VBType>, IEquatable<VBIntrinsicType>, IEquatable<VBNumericType>, IEquatable<VBNumericType<byte>>, IIntegralNumericType, INumericType, IEquatable<VBByteType>
Inheritance
VBByteType
Implements
Inherited Members

Remarks

The managed type of a value of this data type is byte. 👉 Implements IIntegralNumericType.

Constructors

VBByteType()

A VBNumericType<T> representing the Byte data type.

public VBByteType()

Remarks

The managed type of a value of this data type is byte. 👉 Implements IIntegralNumericType.

Properties

DefaultValue

Gets the default value for this data type.

public override VBByteValue DefaultValue { get; }

Property Value

VBByteValue

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.

ManagedMaxValue

Gets the maximum representable managed (.net) value for this data type.

public override double ManagedMaxValue { get; }

Property Value

double

ManagedMinValue

Gets the minimum representable managed (.net) value for this data type.

public override double ManagedMinValue { get; }

Property Value

double

MaxValue

Gets the maximum representable value for this data type.

public static VBByteValue MaxValue { get; }

Property Value

VBByteValue

MinValue

Gets the minimum representable value for this data type.

public static VBByteValue MinValue { get; }

Property Value

VBByteValue

TypeInfo

The Byte data type.

public static VBByteType TypeInfo { get; }

Property Value

VBByteType

Zero

Gets the value 0 (zero) representation of this data type.

public static VBByteValue Zero { get; }

Property Value

VBByteValue

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).

CreateValue(double)

Creates a value of this numeric type holding value, converted to this type's managed representation (banker's rounding for integral targets, as per Convert).

public override VBNumericTypedValue CreateValue(double value)

Parameters

value double

Returns

VBNumericTypedValue