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 8144525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:24:34+00:00 2026-06-06T13:24:34+00:00

I tested this on both .Net 4.0 and .Net 4.0 CP, same result. This

  • 0

I tested this on both .Net 4.0 and .Net 4.0 CP, same result.

This line:
global::System.Globalization.CultureInfo.GetCultureInfo("en-us").Region

If I type it in Visual Studio (C#), then Visual Studio tells me “Region” isn’t valid.
If I type the same line in Immediate window during a breakpoint it is fully valid and returns data as expected. And from what I can see “Region” is not in the MSDN documentation.

Obviously two different objects for some reason.
Why? Whats happening here? Why is reality not consistent? I get scared!
(More seriously, I see behaviour I don’t understand so I’d like to understand it.)

Immediate window returns:

global::System.Globalization.CultureInfo.GetCultureInfo("en-us").Region
{US}
    CurrencyEnglishName: "US Dollar"
    CurrencyNativeName: "US Dollar"
    CurrencySymbol: "$"
    DisplayName: "United States"
    EnglishName: "United States"
    GeoId: 244
    IsMetric: false
    ISOCurrencySymbol: "USD"
    Name: "US"
    NativeName: "United States"
    ThreeLetterISORegionName: "USA"
    ThreeLetterWindowsRegionName: "USA"
    TwoLetterISORegionName: "US"

While Visual Studio go all red on me:
Visual Studio don't recognize CutlureInfo.Region

  • 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-06T13:24:37+00:00Added an answer on June 6, 2026 at 1:24 pm

    Region is a non-public property of the CultureInfo class. It seems that the immediate window has access to it.

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

Sidebar

Related Questions

Why does Format('%u', [-100]) result in '4294967196' ? I tested this in D7 and
I've tested this snippet with 3 different TTF fonts and I still din't get
I have tested this servlet and it works well, except in Google Chrome it
When I tested this code, it gave me java.lang.ArrayIndexOutOfBoundsException: 2 The code isn't finished
I had tested this code: http://support.microsoft.com/kb/316383 It works, but a Word application is opened
I've tested this on Win XP and Windows Server 2008 R2 in Powershell 2.0:
Was just playing around with nodejs and chrome's console when I tested this: []
I've a string, In sql I've tested this string contains non-printable characters but I
I have written this regexp: <(a*)\b[^>]*>.*?</\1> and is tested on this regexp testing site:
I have a catch-all route setup in ASP.NET MVC, so I can capture /this-page,

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.