This documentation is archived and is not being maintained.

How to: Get Culture Information

This topic contains code examples for accessing culture information and making your application compatible for global use.

To get the current locale setting for the device

  • Create an instance of CultureInfo for the executing assembly.

private void GetCultureInformation()
    Assembly asm = Assembly.GetExecutingAssembly();
    CultureInfo ci = asm.GetName().CultureInfo;

This example requires references to System and the following namespaces: