Aggregator Group<TResult>.Try Specialize Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Try | Returns an aggregator for the specified element type for input operands. |
Try | Attempts to create an aggregator specialized to operate on values of the specified type. |
Try | Attempts to create an aggregator specialized to operate on values of the specified type. |
Try | Attempts to create an aggregator specialized to operate on values of the specified type. |
TrySpecialize<T>(Aggregator<T, TResult>)
Attempts to create an aggregator specialized to operate on values of the specified type.
public abstract bool TrySpecialize<T>(
out Aggregator<T, TResult> aggregator
)
Parameters
- aggregator Aggregator<T, TResult>
- On return, the specialized aggregator.
Type Parameters
- T
- The type to specialize for.
Return Value
Booleantrue if a specialized aggregator was created; otherwise false.
TrySpecialize<T>(IAggregator<TResult>)
Attempts to create an aggregator specialized to operate on values of the specified type.
public bool TrySpecialize<T>(
out IAggregator<TResult> aggregator
)
Parameters
- aggregator IAggregator<TResult>
- 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
Booleantrue if a specialized aggregator could be created; otherwise false.
TrySpecialize(Type, IAggregator)
Returns an aggregator for the specified element type
for input operands.
public override bool TrySpecialize(
Type type,
out IAggregator aggregator
)
Parameters
- type Type
- The desired element type.
- aggregator IAggregator
- On return, the aggregator specialized to the element type type.
Return Value
BooleanAn aggregator object that aggregates elements of type type.
TrySpecialize(Type, IAggregator<TResult>)
Attempts to create an aggregator specialized to operate on values of the specified type.
protected virtual bool TrySpecialize(
Type type,
out IAggregator<TResult> aggregator
)
Parameters
- type Type
- The type to specialize for.
- aggregator IAggregator<TResult>
- On return, the specialized aggregator.
Return Value
Booleantrue if a specialized aggregator was created; otherwise false.