• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

Culture Helper

Audience:
api
Some tooltip text!
• 1 minute to read
 • 1 minute to read

The CultureSettingHelper class is used to perform tasks in a temporary culture context. It remembers the previous culture settings, executes the containing code in the set culture, then resets the culture to the previous culture when disposed.

// Here the current culture is known
...
// set both system and UI cultures on current thread
using( new CultureSettingHelper("es-ES") )
{
  // culture-dependent processing
}
// culture has been restored

Multiple overloads enable more behaviors. See the CultureSettingsHelper reference for more details.

© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top