Register new aggregator that can be recognized by PivotDataFactory.
Namespace: NReco.PivotData
Assembly: NReco.PivotData.Extensions (in NReco.PivotData.Extensions.dll) Version: 1.6.1
Syntax
public PivotDataFactory RegisterAggregator( string name, Type t, Func<Type, Object[], IAggregatorFactory> create, Func<IAggregatorFactory, Object[]> getParams )
Parameters
- name
- Type: System.String
aggregator name - t
- Type: System.Type
aggregator factory type - create
- Type: System.Func<Type,Object[], IAggregatorFactory>
handler that creates IAggregatorFactory by type and parameters set - getParams
- Type: System.Func<IAggregatorFactory,Object[]>
handler that returns parameters by IAggregatorFactory instance
Return Value
Type: PivotDataFactorycurrent instance of PivotDataFactory (useful for chaining register calls)
See Also