BinaryAggregatorGroup<TResult>.TrySpecialize Method

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

TrySpecialize(Type, IBinaryAggregator) Returns an aggregator specialized to operate on values of the specified type.
TrySpecialize(Type, IBinaryAggregator<TResult>) Attempts to create an aggregator specialized to operate on values of the specified type.
TrySpecialize<T>(BinaryAggregator<T, T, TResult>) Attempts to create an aggregator specialized to operate on values of the specified type.
TrySpecialize<T>(IBinaryAggregator<TResult>) Attempts to create an aggregator specialized to operate on values of the specified type.

TrySpecialize<T>(BinaryAggregator<T, T, TResult>)

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

Parameters

aggregator  BinaryAggregator<T, T, TResult>
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>(IBinaryAggregator<TResult>)

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

Parameters

aggregator  IBinaryAggregator<TResult>
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(Type, IBinaryAggregator)

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

Parameters

type  Type
The type to specialize for.
aggregator  IBinaryAggregator
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, IBinaryAggregator<TResult>)

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

Parameters

type  Type
The type to specialize for.
aggregator  IBinaryAggregator<TResult>
On return, the specialized aggregator.

Return Value

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

See Also