Table of Contents

Class VBDateType

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

A VBIntrinsicType<T> representing the Date data type.

public sealed record VBDateType : VBIntrinsicType<DateTime>, IEquatable<VBType>, IEquatable<VBIntrinsicType>, IEquatable<VBIntrinsicType<DateTime>>, IEquatable<VBDateType>
Inheritance
VBDateType
Implements
Inherited Members

Remarks

The managed type of a value of this data type is DateTime.
👉 Date values are also representable as a double via SerialValue (OLE Automation/OADate value).

Constructors

VBDateType()

A VBIntrinsicType<T> representing the Date data type.

public VBDateType()

Remarks

The managed type of a value of this data type is DateTime.
👉 Date values are also representable as a double via SerialValue (OLE Automation/OADate value).

Fields

MaxSerial

The maximum valid value for a DateSerial.

public const double MaxSerial = 2958465

Field Value

double

MinSerial

The minimum valid value for a DateSerial.

public const double MinSerial = -657434

Field Value

double

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.

MaxValue

Gets the maximum representable value for this data type.

public static VBDateValue MaxValue { get; }

Property Value

VBDateValue

MinValue

Gets the minimum representable value for this data type.

public static VBDateValue MinValue { get; }

Property Value

VBDateValue

Size

The size (in bytes) of a value of this type.

public override int Size { get; }

Property Value

int

Remarks

Determines the length of the allocated memory space for a value of this type.

TypeInfo

The Date data type.

public static VBDateType TypeInfo { get; }

Property Value

VBDateType

Zero

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

public static VBDateValue Zero { get; }

Property Value

VBDateValue