Aggregator2Group<T>.TrySpecialize Method

Definition

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

Overload List

TrySpecialize(Type, IAggregator2) Returns an aggregator specialized to operate on values of the specified type.
TrySpecialize(Type, IAggregator2<T>) Attempts to create an aggregator specialized to operate on values of the specified type.
TrySpecialize<U>(Aggregator2<U, T>) Attempts to create an aggregator specialized to operate on values of the specified type.
TrySpecialize<U>(IAggregator2<T>) Attempts to create an aggregator specialized to operate on values of the specified type.

TrySpecialize<U>(Aggregator2<U, T>)

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

Parameters

aggregator  Aggregator2<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.

TrySpecialize<U>(IAggregator2<T>)

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

Parameters

aggregator  IAggregator2<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.

TrySpecialize(Type, IAggregator2)

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

Parameters

type  Type
The type to specialize for.
aggregator  IAggregator2
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.

TrySpecialize(Type, IAggregator2<T>)

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

Parameters

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

Return Value

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

See Also