Type Preserving Aggregator Group.Try Specialize Method
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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. |
TrySpecialize<T>(Aggregator<T, T>)
Attempts to create an aggregator specialized to operate on values of the specified type.
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
Booleantrue 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.
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
Booleantrue if a specialized aggregator could be created; otherwise false.