UnitsExtensionsGetUnits Method |
Gets the units that are compatible to a given SI unit.
Namespace: Altaxo.UnitsAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static IEnumerable<(Type Type, UnitDescriptionAttribute DescriptionAttribute)> GetUnits(
SIUnit siUnit,
bool includeSelf = false
)
Parameters
- siUnit SIUnit
- The SI unit.
- includeSelf Boolean (Optional)
- If true, the unit given in the argument is included in the enumeration, if it is a predefined unit.
Return Value
IEnumerableValueTupleType,
UnitDescriptionAttributeAll units compatible to the given SI unit. If argument
includeSelf is true, the unit given in the argument
siUnit is also included.
See Also