public static IEnumerable <Money> Allocate(this Money @this, RatioArray ratios, IMoneyAllocator allocator) { Require.NotNull(allocator, nameof(allocator)); return(allocator.Allocate(@this, ratios)); }
public static IEnumerable <Money> Allocate(this Money @this, RatioArray ratios, MidpointRounding mode) => new MidpointRoundingMoneyAllocator(mode).Allocate(@this, ratios);
public static IEnumerable <Money> Allocate(this Money @this, RatioArray ratios, IRoundingAdjuster adjuster) => new RoundingMoneyAllocator(adjuster).Allocate(@this, ratios);
public static IEnumerable <Money> Allocate(this Money @this, RatioArray ratios) => s_DefaultAllocator.Allocate(@this, ratios);