Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7077421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:25:17+00:00 2026-05-28T06:25:17+00:00

Given a specific country code, e.g. CH, how can I get a CultureInfo object?

  • 0

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 i want to know if it is possible to create a CultureInfo object from just the country code. It doesn’t matter which exact culture I get (fr-CH/de-CH).

I’m trying do something like this:

CultureInfo c = CultureInfo.CreateSpecificCulture("CH");

Would it be possible to create a culture from a RegionInfo object?
Then it would look like this:

RegionInfo r= new RegionInfo("CH");
CultureInfo c = CultureInfo.CreateSpecificCulture(r);

Obviously the preceding examples don’t compile, they just give an idea of what I’m trying to achieve.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:25:17+00:00Added an answer on May 28, 2026 at 6:25 am

    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).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I get the Sunday and Saturday of the week given a specific
I have an array of ints like this: [32,128,1024,2048,4096] Given a specific value, I
Given that two branches have diverged and a specific commit from one branch (and
I'm filtering some content on my website via country specific code, I'm trying to
Given a specific width, I want to find out the height of a QTextDocument
Can I somehow use a specific database given a specific condition? To clarify I
Given a query for example: from Users u where u.Country = US I have
By already given specific process' handle, how can I move further to search for
If I was to given a specific java.util.Date, how can I generate a start
Given a specific row number and column index how can I calculate the cell

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.