Table of Contents

MoneyBagConversionAudit<TTarget> Struct

Definition

Namespace
Bodu.Financial
Assembly
Bodu.Financial.dll
Package
Bodu.Financial 1.0.0
Source
MoneyBagConversionAudit{T}.cs

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

TTarget

The destination currency type.

Implements
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

Total Money<TTarget>

The aggregated total in the destination currency.

Lines IReadOnlyList<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

IReadOnlyList<MoneyBagConversionLine>

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

Total Money<TTarget>
Lines IReadOnlyList<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

other MoneyBagConversionAudit<TTarget>

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

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

left MoneyBagConversionAudit<TTarget>
right MoneyBagConversionAudit<TTarget>

Returns

bool

operator !=(MoneyBagConversionAudit<TTarget>, MoneyBagConversionAudit<TTarget>)

public static bool operator !=(MoneyBagConversionAudit<TTarget> left, MoneyBagConversionAudit<TTarget> right)

Parameters

left MoneyBagConversionAudit<TTarget>
right MoneyBagConversionAudit<TTarget>

Returns

bool

Applies to

ProductVersions
.NET8, 10