Will set the threads Culture and reset it to the original value when this is disposed of.
Namespace: Composite.Core.Threading
Examples
using( var cultureScope = new ThreadCultureScope( new CultureInfo("da-DK") ) )
{
// Code here will run in da-DK scope.
// Culture in effect before the using statement will be reset when exiting the using.
}
Assembly: Composite (in Composite.dll) Version: 5.3.6135.33083
Syntax
C# |
---|
public sealed class ThreadCultureScope : IDisposable |
Visual Basic |
---|
Public NotInheritable Class ThreadCultureScope _ Implements IDisposable |
Visual C++ |
---|
public ref class ThreadCultureScope sealed : IDisposable |