PdfRpt.Aggregates.Numbers.Minimum.ProcessingBoundary C# (CSharp) Method

ProcessingBoundary() public method

A general method which takes a list of data and calculates its corresponding aggregate value. It will be used to calculate the aggregate value of each pages individually, with considering the previous pages data.
public ProcessingBoundary ( IList columnCellsSummaryData ) : object
columnCellsSummaryData IList List of data
return object
        public object ProcessingBoundary(IList<SummaryCellData> columnCellsSummaryData)
        {
            if (columnCellsSummaryData == null || !columnCellsSummaryData.Any()) return 0;

            var list = columnCellsSummaryData;

            var cellValue = Convert.ToDouble(list.First().CellData, CultureInfo.InvariantCulture);
            var min = cellValue;

            foreach (var item in list)
            {
                cellValue = Convert.ToDouble(item.CellData.PropertyValue, CultureInfo.InvariantCulture);
                if (cellValue < min)
                    min = cellValue;
            }

            return min;
        }