Interface IQuantity<TAmount, TUnit>
An IAmount<TValue> tagged with an IUnit.
public interface IQuantity<TAmount, TUnit> : IEquatable<IQuantity<TAmount, TUnit>> where TAmount : IAmount<(long Whole, ulong Fraction)> where TUnit : IUnit
Type Parameters
TAmountConcrete amount type (e.g.
DecimalAmount).TUnitConcrete unit type.
- Inherited Members
Properties
Amount
The numeric part.
TAmount Amount { get; }
Property Value
- TAmount
Unit
The unit part.
TUnit Unit { get; }
Property Value
- TUnit