Units of distance for the current CultureInfo in .Net

℡╲_俬逩灬. 提交于 2020-01-01 08:24:05

问题


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



来源:https://stackoverflow.com/questions/6020359/units-of-distance-for-the-current-cultureinfo-in-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!