PivotDataFactoryRegisterAggregator Method

NReco.PivotData Class Library Documentation
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: SystemString
aggregator name
t
Type: SystemType
aggregator factory type
create
Type: SystemFuncType, Object, IAggregatorFactory
handler that creates IAggregatorFactory by type and parameters set
getParams
Type: SystemFuncIAggregatorFactory, Object
handler that returns parameters by IAggregatorFactory instance

Return Value

Type: PivotDataFactory
current instance of PivotDataFactory (useful for chaining register calls)
See Also

Reference