Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Units of distance for the current CultureInfo in .Net

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"

like image 911
AwkwardCoder Avatar asked May 16 '11 16:05

AwkwardCoder


1 Answers

RegionInfo.CurrentRegion.IsMetric

like image 174
Forgotten Semicolon Avatar answered Oct 14 '22 08:10

Forgotten Semicolon