AggregatorGroup<T>.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 specialized to operate on values of the specified type.
TrySpecialize(Type, IAggregator<T>) Attempts to create an aggregator specialized to operate on values of the specified type.
TrySpecialize<U>(Aggregator<U, T>) Attempts to create an aggregator specialized to operate on values of the specified type.
TrySpecialize<U>(IAggregator<T>) Attempts to create an aggregator specialized to operate on values of the specified type.

AggregatorGroup<T>.TrySpecialize<U>(Aggregator<U, T>)

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

Parameters

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

Type Parameters

U
The type to specialize for.

Return Value

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

AggregatorGroup<T>.TrySpecialize<U>(IAggregator<T>)

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

Parameters

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

Type Parameters

U
The type to specialize for.

Return Value

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

AggregatorGroup<T>.TrySpecialize(Type, IAggregator)

Returns an aggregator specialized to operate on values of the specified type.
C#
public override bool TrySpecialize(
	Type type,
	out IAggregator aggregator
)

Parameters

type  Type
The type to specialize for.
aggregator  IAggregator
On return, the aggregator specialized for elements of type type, or null if no specialized aggregator exists.

Return Value

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

AggregatorGroup<T>.TrySpecialize(Type, IAggregator<T>)

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

Parameters

type  Type
The type to specialize for.
aggregator  IAggregator<T>
On return, the specialized aggregator.

Return Value

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

See Also