locked
How to get Interval Globalization.CultureInfo.CurrentUICulture.UserDefaultCulture RRS feed

  • Question

  • <p>UserDefaultCulture is a Interval property. I wonder how to get it.</p>

    Thanks.

    Friday, November 8, 2013 3:55 AM

Answers

  • No, you cannot access internal implementation details from code.

    --Rob

    Saturday, November 9, 2013 12:56 AM
    Moderator

All replies

  • There is no such property available.

    There are DefaultThreadCurrentCulture and DefaultThreadCurrentUICulture statics on the CultureInfo object.

    --Rob

    Friday, November 8, 2013 4:05 AM
    Moderator
  • In instance window, I can use print out UserDefaultUICulture like this:

    ? Globalization.CultureInfo.CurrentUICulture.UserDefaultUICulture

    But I can not get it in code.

    Friday, November 8, 2013 4:48 AM
  • No, you cannot access internal implementation details from code.

    --Rob

    Saturday, November 9, 2013 12:56 AM
    Moderator
  • If I can not access the omtermal details, I wonder how to get UserDefaultCulture.

    In Windows Control panel, users can set the Time/Date format to other language, but CurrentCulture or CurrentUICulture always return English cultrure.

    Sunday, November 10, 2013 11:05 AM