Hello,
Recently I've been having some issues with the CultureTypes.SpecificCultures as for a reason I don't know I can no longer retreive United Kingdom Culture from it everytime I ask GetAllCultures() Method.
Did they change this?
Hello,
Recently I've been having some issues with the CultureTypes.SpecificCultures as for a reason I don't know I can no longer retreive United Kingdom Culture from it everytime I ask GetAllCultures() Method.
Did they change this?
en-GB
is United Kigdom's culture name.
Have a look at following code-snippet which returns English cultures:
var list = CultureInfo
.GetCultures(CultureTypes.AllCultures)
.Where(x=>x.TwoLetterISOLanguageName=="en");
foreach (var cultureInfo in list)
{
Console.WriteLine(cultureInfo.TextInfo.CultureName);
}
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.