class ConversionAttribute

Parents

Attribute

Brief

The attribute to specify the conversion rule for the measurement unit.

Details

The attribute is applied on enumeration fields which describe one unit of the measurement (e.g. "meter")

One of the enumeration fields must always be attributed as a base value.

The operation defined is the conversion from the unit to the base unit.

Public Properties

Factor

The numeric factor for the first operation

Operation

The first operation to be performed in order to convert the unit into base value

SecondFactor

The numeric factor for the second operation

SecondOperation

The second operation to be performed in order to convert the unit into base value

Public Constructors

ConversionAttribute

The constructor to specify the base unit

ConversionAttribute

The constructor to specify a custom conversion

ConversionAttribute

The constructor to specify one operation conversion

ConversionAttribute

The constructor to specify two-operation conversion

back