Method FromBaseAsync

FromBaseAsync(IEnumerable<double>, IUnit, CancellationToken)

Converts a collection of values in the base unit to values in given unit (= factored and shifted)

Declaration
[Obsolete("Use the other override instead! This method will be removed in version 27.0.0.")]
Task<IEnumerable<double>> FromBaseAsync(IEnumerable<double> values, IUnit unit, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IEnumerable<double> values

The values to convert

IUnit unit

The unit to convert the value to

CancellationToken cancellationToken

The optional cancellation token

Returns
Type Description
Task<IEnumerable<double>>

A collection of double value in requested unit

FromBaseAsync(IEnumerable<double>, IUnitBase, CancellationToken)

Converts a collection of values in the base unit to values in given unit (= factored and shifted)

Declaration
Task<IEnumerable<double>> FromBaseAsync(IEnumerable<double> values, IUnitBase unit, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IEnumerable<double> values

The values to convert

IUnitBase unit

The unit to convert the value to

CancellationToken cancellationToken

The optional cancellation token

Returns
Type Description
Task<IEnumerable<double>>

A collection of double value in requested unit

Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.
Previous
Next