Given a specific country code, e.g. \"CH\", how can I get a CultureInfo object? The specific country code is dynamic (changes at runtime). I only have the country code, and
If you only have the country code, you could use something like this to get all culture infos associated with that country:
var cultureInfos = CultureInfo.GetCultures(CultureTypes.AllCultures)
.Where(c => c.Name.EndsWith("-CH"));
EDIT: adding - before CH to prevent an edge case, as pointed out by @JeppeStigNielsen (see comments below).