Units of distance for the current CultureInfo in .

2019-04-04 07:32发布

问题:

Is it possible to get the unit of distance from a CultureInfo class or any other class in the System.Globalization namespace.

e.g. "en-GB" would be "mile", "en-FR" would be "km"

回答1:

RegionInfo.CurrentRegion.IsMetric