Arun Rana
Arun Rana

Reputation: 8606

How can i get Culture by LCID

In my application (MVC3) i have bind culture info list to dropdown and as per selection i have stored LCID value in DB. now i would like to get Culture using LCID, how can i obtain using LCID value?

Upvotes: 2

Views: 6290

Answers (1)

richardtallent
richardtallent

Reputation: 35374

Just use the CultureInfo constructor:

 new CultureInfo(myLCID);

This will return a CultureInfo object for the appropriate LCID.

More info:

https://learn.microsoft.com/en-us/dotnet/api/system.globalization.cultureinfo.-ctor#system-globalization-cultureinfo-ctor(system-int32)

Upvotes: 8

Related Questions