TypePreservingAggregatorGroup.TrySpecialize Method

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

TrySpecialize(Type, IAggregator) Returns an aggregator for the specified element type for input operands.
TrySpecialize<T>(Aggregator<T, T>) Attempts to create an aggregator specialized to operate on values of the specified type.
TrySpecialize<T>(IAggregator<T>) Attempts to create an aggregator specialized to operate on values of the specified type.

TrySpecialize<T>(Aggregator<T, T>)

Attempts to create an aggregator specialized to operate on values of the specified type.
C#
public bool TrySpecialize<T>(
	out Aggregator<T, T> aggregator
)

Parameters

aggregator  Aggregator<T, T>
On return, the specialized aggregator.

Type Parameters

T
The type to specialize for.

Return Value

Boolean
true if a specialized aggregator was created; otherwise false.

TrySpecialize<T>(IAggregator<T>)

Attempts to create an aggregator specialized to operate on values of the specified type.
C#
public bool TrySpecialize<T>(
	out IAggregator<T> aggregator
)

Parameters

aggregator  IAggregator<T>
On return, the aggregator specialized for elements of type T, or null if no specialized aggregator exists.

Type Parameters

T
The type to specialize for.

Return Value

Boolean
true if a specialized aggregator could be created; otherwise false.

See Also