MeasurementTokenCollectionReduce Method

Reduce the caller's token collection to a flat list of numbers and calculable symbols.

Definition

Namespace: ShopTools
Assembly: ShopTools (in ShopTools.exe) Version: 25.2429.4649
C#
private static MeasurementTokenCollection Reduce(
	MeasurementTokenCollection tokens,
	string defaultUnit
)

Parameters

tokens  MeasurementTokenCollection
Reference to the collection of tokens to reduce.
defaultUnit  String
The default unit to assign if no unit is specified for a number.

Return Value

MeasurementTokenCollection
Reference to a flat collection of decimal numbers, mathematical operators, and parenthesis.

See Also