Beispiel #1
0
        public static string MeasurementUnitToString(MeasurementUnit unit)
        {
            if (_measurementUnits.ContainsValue1(unit))
            {
                return(_measurementUnits.GetValue2(unit));
            }

            throw new ArgumentException("must be a known MeasurementUnit enumeration value", nameof(unit));
        }