Valhalla Legends Archive

Programming => General Programming => .NET Platform => Topic started by: K on February 24, 2004, 06:45 PM

Title: Language ID / Country Info
Post by: K on February 24, 2004, 06:45 PM
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?
Title: Re:Language ID / Country Info
Post by: K on February 24, 2004, 07:03 PM
Follow up:

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