Class VBDateValue
Represents a runtime value of the VBDateType data type.
public sealed record VBDateValue : VBTypedValue, IEquatable<VBRuntimeEntity>, IEquatable<VBTypedValue>, IVBTypedValue<VBDateValue, DateTime>, IEquatable<IVBTypedValue<VBDateValue, DateTime>>, IEquatable<VBDateValue>
- Inheritance
-
VBDateValue
- Implements
- Inherited Members
Constructors
VBDateValue(IBindingHandle)
public VBDateValue(IBindingHandle handle)
Parameters
handleIBindingHandle
VBDateValue(double)
public VBDateValue(double value)
Parameters
valuedouble
Properties
SerialValue
Gets the DateSerial (double) underlying numeric representation of the date value.
public double SerialValue { get; }
Property Value
Remarks
This representation is natively compatible with how dates are represented in Microsoft Excel.
Size
The allocated size (in bytes) of this value.
public override int Size { get; }
Property Value
Value
Gets the underlying managed value corresponding to this typed value.
public DateTime Value { get; }
Property Value
Methods
Equals(IVBTypedValue<VBDateValue, DateTime>?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IVBTypedValue<VBDateValue, DateTime>? other)
Parameters
otherIVBTypedValue<VBDateValue, DateTime>An object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.