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 d5cc8b4
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 15 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
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.Win32;

namespace Singulink.Globalization;
namespace Singulink.Globalization;

/// <summary>
/// Provides a set of static methods for converting between money collection types.
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System.Collections.Generic;
using System.Collections.Immutable;

namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;
namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;

[PrefixTestClass]
public class RemoveAll
Expand Down

0 comments on commit d5cc8b4

Please sign in to comment.