Class LocaleGuard
This class set the locale to specific values and revert it back to the old values when the object is disposed.
public class LocaleGuard : DisposableObject, IDisposable
- Inheritance
-
LocaleGuard
- Implements
- Inherited Members
Constructors
LocaleGuard(LocaleCategory, string)
Create a locale guard to set the locale to specific value. Will revert locale back to previous value when the object is disposed.
public LocaleGuard(LocaleGuard.LocaleCategory category, string locale)
Parameters
category
LocaleGuard.LocaleCategoryThe locale category
locale
stringThe locale
Methods
DisposeObject()
Revert back to the old locale
protected override void DisposeObject()