• Welcome to Valhalla Legends Archive.
 

Language ID / Country Info

Started by K, February 24, 2004, 06:45 PM

Previous topic - Next topic

K

This is a really minor problem, but it's nagging at me.
Is it possible to get the Language ID / Country Abbreviation / Country Name without using interop?  Peeking around in the Globalization namespace I noticed I can get the LCID:
System.Globalization.CultureInfo.CurrentCulture.LCID


however, the CurrentCulture doesn't seem to contain any reference to the country, except in the Language fields ("en-US", "English (United States)") and I'd rather not parse these.

I realize I could just use interop, but I'm looking for a completely managed solution.

Any sugguestions?

K

Follow up:

Country Info is available
via System.Globalization.RegionInfo.CurrentRegion