PdfRpt.FluentInterface.MainTableAdHocColumnsConventionsBuilder.AddTypeAggregateFunction C# (CSharp) Method

AddTypeAggregateFunction() public method

Here you can assign an AggregateFunction to the specific data type. ColumnNamesAggregateFunctions has higher priority.
public AddTypeAggregateFunction ( Type type, IAggregateFunction func ) : void
type Type
func IAggregateFunction
return void
        public void AddTypeAggregateFunction(Type type, IAggregateFunction func)
        {
            if (_builder.TypesAggregateFunctions == null)
                _builder.TypesAggregateFunctions = new Dictionary<Type, IAggregateFunction>();

            _builder.TypesAggregateFunctions.Add(type, func);
        }