Valhalla Legends Forums Archive | .NET Platform | Language ID / Country Info

AuthorMessageTime
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:
[code]System.Globalization.CultureInfo.CurrentCulture.LCID[/code]


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?
February 25, 2004, 12:45 AM
K
Follow up:

Country Info is available
via System.Globalization.RegionInfo.CurrentRegion
February 25, 2004, 1:03 AM

Search