Click or drag to resize

IUnit Interface

Represents an arbitrary unit (SI or any other unit). Implementations define how to convert to/from SI units and expose prefixes and the corresponding SI base unit.

Namespace: Altaxo.Units
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public interface IUnit

The IUnit type exposes the following members.

Properties
 NameDescription
Public propertyNameFull name of the unit.
Public propertyPrefixes Returns a list of possible prefixes for this unit (like µ, m, k, M, G..).
Public propertyShortCutUsual shortcut of the unit.
Public propertySIUnit Returns the corresponding SI unit.
Top
Methods
 NameDescription
Public methodFromSIUnit Converts x (in SI units) to the corresponding value in this unit.
Public methodToSIUnit Converts x to the corresponding SI unit.
Top
Remarks
Implementations of this interface are responsible for converting a value to the corresponding SI value and for converting a value from the SI representation back into this unit. Implementations also expose available SI prefixes and the associated SI base unit.
See Also