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