MoneyBagConversionAudit<TTarget> Struct
Definition
- Assembly
- Bodu.Financial.dll
- Package
- Bodu.Financial 1.0.0
Bundles the aggregated total produced by a dated bag conversion with the full per-line audit trail.
public readonly struct MoneyBagConversionAudit<TTarget> : IEquatable<MoneyBagConversionAudit<TTarget>> where TTarget : ICurrency
Type Parameters
TTargetThe destination currency type.
- Implements
-
IEquatable<MoneyBagConversionAudit<TTarget>>
- Inherited Members
- Extension Methods
Constructors
MoneyBagConversionAudit(Money<TTarget>, IReadOnlyList<MoneyBagConversionLine>)
Bundles the aggregated total produced by a dated bag conversion with the full per-line audit trail.
public MoneyBagConversionAudit(Money<TTarget> Total, IReadOnlyList<MoneyBagConversionLine> Lines)
Parameters
TotalMoney<TTarget>The aggregated total in the destination currency.
LinesIReadOnlyList<MoneyBagConversionLine>One line per source currency in the bag, in ISO-lexicographic order.
Properties
Lines
One line per source currency in the bag, in ISO-lexicographic order.
public IReadOnlyList<MoneyBagConversionLine> Lines { get; init; }
Property Value
Total
The aggregated total in the destination currency.
public Money<TTarget> Total { get; init; }
Property Value
- Money<TTarget>
Methods
Deconstruct(out Money<TTarget>, out IReadOnlyList<MoneyBagConversionLine>)
public void Deconstruct(out Money<TTarget> Total, out IReadOnlyList<MoneyBagConversionLine> Lines)
Parameters
TotalMoney<TTarget>LinesIReadOnlyList<MoneyBagConversionLine>
Equals(MoneyBagConversionAudit<TTarget>)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(MoneyBagConversionAudit<TTarget> other)
Parameters
otherMoneyBagConversionAudit<TTarget>An object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(MoneyBagConversionAudit<TTarget>, MoneyBagConversionAudit<TTarget>)
public static bool operator ==(MoneyBagConversionAudit<TTarget> left, MoneyBagConversionAudit<TTarget> right)
Parameters
leftMoneyBagConversionAudit<TTarget>rightMoneyBagConversionAudit<TTarget>
Returns
operator !=(MoneyBagConversionAudit<TTarget>, MoneyBagConversionAudit<TTarget>)
public static bool operator !=(MoneyBagConversionAudit<TTarget> left, MoneyBagConversionAudit<TTarget> right)
Parameters
leftMoneyBagConversionAudit<TTarget>rightMoneyBagConversionAudit<TTarget>
Returns
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |