Table of Contents

Interface IQuantity<TAmount, TUnit>

Namespace
Virtufin.Core.Position
Assembly
Virtufin.Core.dll

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

TAmount

Concrete amount type (e.g. DecimalAmount).

TUnit

Concrete 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