PdfRpt.Core.PdfTable.AdHocPdfColumnDefinitions.setAggregateFunc C# (CSharp) Method

setAggregateFunc() private method

private setAggregateFunc ( string columnName, ColumnAttributes colDef, Type type ) : void
columnName string
colDef PdfRpt.Core.Contracts.ColumnAttributes
type System.Type
return void
        private void setAggregateFunc(string columnName, ColumnAttributes colDef, Type type)
        {
            if (setColumnAggregateFunc(columnName, colDef)) return;
            if (_conventions == null || _conventions.TypesAggregateFunctions == null || type == null) return;

            var func = _conventions.TypesAggregateFunctions.FirstOrDefault(x => x.Key == type);
            if (func.Value != null)
            {
                colDef.AggregateFunction = func.Value;
            }
        }