19 lines
497 B
C#
19 lines
497 B
C#
using System.Linq;
|
|
|
|
namespace EvoCalculator.Core.Calculation.Columns
|
|
{
|
|
public class SumCurrentNegativeColumn : BaseColumn<decimal>
|
|
{
|
|
public SumCurrentNegativeColumn(int count) : base(count)
|
|
{
|
|
}
|
|
|
|
public void ComputeValues(NegativeCashflowColumn negativeCashflowColumn)
|
|
{
|
|
for (var i = 1; i < Values.Length; i++)
|
|
{
|
|
Values[i] = negativeCashflowColumn.Values.Skip(i).Sum(x => x);
|
|
}
|
|
}
|
|
}
|
|
} |