Class VBCurrencyValue
A VBNumericTypedValue representing a runtime value of the VBCurrencyType data type.
public sealed record VBCurrencyValue : VBNumericTypedValue, IEquatable<VBRuntimeEntity>, IEquatable<VBTypedValue>, IComparable<INumericValue>, IEquatable<VBNumericTypedValue>, IVBTypedValue<VBCurrencyValue, decimal>, IEquatable<IVBTypedValue<VBCurrencyValue, decimal>>, INumericValue<VBCurrencyValue>, INumericValue, IEquatable<VBCurrencyValue>
- Inheritance
-
VBCurrencyValue
- Implements
- Inherited Members
Constructors
VBCurrencyValue(Symbol)
A VBNumericTypedValue representing a runtime value of the VBCurrencyType data type.
public VBCurrencyValue(Symbol Symbol)
Parameters
Properties
BoxedValue
Gets the boxed (object) underlying managed value.
public override object BoxedValue { get; }
Property Value
Remarks
👉 This member is provided as a non-generic convenience for contexts where the type is unknown.
Use the generic ITypedValue<T> whenever possible instead.
ManagedValue
Gets a managed (.net) internal representation the numeric value. This is always a double.
public override double ManagedValue { get; init; }
Property Value
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 decimal Value { get; }
Property Value
Methods
Equals(IVBTypedValue<VBCurrencyValue, decimal>?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IVBTypedValue<VBCurrencyValue, decimal>? other)
Parameters
otherIVBTypedValue<VBCurrencyValue, decimal>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.
WithValue(decimal)
public VBCurrencyValue WithValue(decimal value)
Parameters
valuedecimal