Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mikernet committed Mar 7, 2024
1 parent 985143c commit 877aa84
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ public struct Enumerator : IEnumerator<Money>
/// </summary>
public Money Current => new(_amountLookupEnumerator.Current.Value, _amountLookupEnumerator.Current.Key);

/// <inheritdoc cref="Current"/>
/// <inheritdoc/>
object? IEnumerator.Current => Current;

internal Enumerator(ImmutableDictionary<Currency, decimal> amountLookup)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ public struct Enumerator : IEnumerator<Money>
/// </summary>
public Money Current => new(_amountLookupEnumerator.Current.Value, _amountLookupEnumerator.Current.Key);

/// <inheritdoc cref="Current"/>
/// <inheritdoc/>
object? IEnumerator.Current => Current;

internal Enumerator(ImmutableSortedDictionary<Currency, decimal> amountLookup)
Expand Down
5 changes: 2 additions & 3 deletions Source/Singulink.Globalization.Currency/MoneySet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ public MoneySet(IEnumerable<Money> values) : this(CurrencyRegistry.Default, valu
/// <exception cref="ArgumentException">
/// Attempted to add a value with a currency that is not available in the currency registry.
/// </exception>
public MoneySet(CurrencyRegistry registry, IEnumerable<Money> values) : this(registry, values, values is not IReadOnlyMoneySet s || s.Registry != registry)
{
}
public MoneySet(CurrencyRegistry registry, IEnumerable<Money> values)
: this(registry, values, values is not IReadOnlyMoneySet s || s.Registry != registry) { }

/// <summary>
/// Initializes a new instance of the <see cref="MoneySet"/> class. Trusted internal constructor.
Expand Down
5 changes: 2 additions & 3 deletions Source/Singulink.Globalization.Currency/SortedMoneySet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ public SortedMoneySet(IEnumerable<Money> values) : this(CurrencyRegistry.Default
/// <exception cref="ArgumentException">
/// Attempted to add a value with a currency that is not available in the currency registry.
/// </exception>
public SortedMoneySet(CurrencyRegistry registry, IEnumerable<Money> values) : this(registry, values, values is not IReadOnlyMoneySet s || s.Registry != registry)
{
}
public SortedMoneySet(CurrencyRegistry registry, IEnumerable<Money> values)
: this(registry, values, values is not IReadOnlyMoneySet s || s.Registry != registry) { }

/// <summary>
/// Initializes a new instance of the <see cref="SortedMoneySet"/> class. Trusted internal constructor.
Expand Down

0 comments on commit 877aa84

Please sign in to comment.