Class VBCurrencyValue
A VBNumericTypedValue representing a runtime value of the VBCurrencyType data type.
public sealed record VBCurrencyValue : VBNumericTypedValue, IEquatable<VBTypedValue>, IEquatable<VBNumericTypedValue>, IVBTypedValue<VBCurrencyValue, VBRuntimeCurrencyValue>, IEquatable<IVBTypedValue<VBCurrencyValue, VBRuntimeCurrencyValue>>, INumericValue<VBCurrencyValue>, INumericValue, IEquatable<VBCurrencyValue>
- Inheritance
-
VBCurrencyValue
- Implements
- Inherited Members
- Extension Methods
Constructors
VBCurrencyValue()
A VBNumericTypedValue representing a runtime value of the VBCurrencyType data type.
public VBCurrencyValue()
VBCurrencyValue(IBindingHandle)
public VBCurrencyValue(IBindingHandle handle)
Parameters
handleIBindingHandle
VBCurrencyValue(decimal)
public VBCurrencyValue(decimal value)
Parameters
valuedecimal
Properties
AsDouble
The value as a managed double. A transitional accessor while the semantic layer still
computes on double for anything numeric: safe against the boxed-primitive cast that a
bare (double)RuntimeValue.BoxedValue would throw.
public override double AsDouble { get; }
Property Value
Remarks
A value of a primitive managed type overrides it with the value itself, which it reads without boxing it.
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 VBRuntimeCurrencyValue Value { get; }
Property Value
Methods
Equals(IVBTypedValue<VBCurrencyValue, VBRuntimeCurrencyValue>?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IVBTypedValue<VBCurrencyValue, VBRuntimeCurrencyValue>? other)
Parameters
otherIVBTypedValue<VBCurrencyValue, VBRuntimeCurrencyValue>An object to compare with this object.