DbDoubleUnits
- Last UpdatedNov 13, 2025
- 1 minute read
Represents a standard or compound unit constructed via static constructors. For example, construct a compound unit from an expression:
DbDoubleUnits u1 = DbDoubleUnits.GetUnits("kg.m.s-2");
or construct a standard unit from a standard enumeration:
DbDoubleUnits u1 = DbDoubleUnits.GetUnits(DbUnits.MM);
There is a static method to get all the defined standard and compound units:
DbDoubleUnits[] units = DbDoubleUnits.AllUnits();
and properties to get the description, dimension, conversion factor For example, get the dimension of given units:
DbDimension d1 = DbDoubleUnits.GetUnits(DbUnits.MM).Dimension;