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

  • Home
  • SEARCH
  • 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 8588027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:42:55+00:00 2026-06-11T22:42:55+00:00

Is there a set of constants or an enumeration in C# system/globalization namespace which

  • 0

Is there a set of constants or an enumeration in C# system/globalization namespace which contains valid culture names?

I am looking for something so that I don’t have to type in “en-GB”, etc.

  • 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-06-11T22:42:56+00:00Added an answer on June 11, 2026 at 10:42 pm

    No there isn’t. The list of available cultures is system-specific – you can even register new custom cultures using CultureAndRegionInfoBuilder.

    So if you want this, you’ll have to create your own enum or constants for the subset of common cultures that you’re interested in, e.g.:

    public static class KnownCulture
    {
        public readonly String EnglishUS = "en-US";
        public readonly String EnglishGB = "en-GB";
        ... etc ...
    }
    

    or

    public enum KnownLCID
    {
        EnglishUS = 0x409,
        EnglishGB = 0x809,
        ...
    }
    

    This is analogous to the KnownColor enumeration: it’s not possible to create an enumeration for all possible colors, but it can make sense to have an enumeration for frequently used ones.

    I wouldn’t expect Microsoft to provide an equivalent KnownCulture enumeration out of the box, as it’s rather sensitive (why is my culture not included?).

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

Sidebar

Related Questions

Is there a set of command-line options that will convince gcc to produce a
Is there a set of things that every JavaScript programmer should know to be
Is there a set of functions that give you the file and/or the folder
there is a set of data which is arranged in a specific manner (as
Are there any constants in T-SQL like there are in some other languages that
Possible Duplicate: Are there constants in Javascript? For example here I set the close
Is there a way to set a constant width for geom_bar() in the event
Is there a way to set the NULL_DISTINCT_FOR_UNIQUE to 1 for UNIQUE constraints to
There are set of check boxes and answers (hidden). When a user checks the
Whereas there is a set of richly informative pages describing Visual Studio templates for

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.