Culture Helper
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.