Will set the threads Culture and reset it to the original value when this is disposed of.

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. }

Namespace: Composite.Core.Threading
Assembly: Composite (in Composite.dll) Version: 6.1.6325.31818

Syntax

C#
public sealed class ThreadCultureScope : IDisposable
Visual Basic
Public NotInheritable Class ThreadCultureScope _
	Implements IDisposable
Visual C++
public ref class ThreadCultureScope sealed : IDisposable

Inheritance Hierarchy

System..::..Object
  Composite.Core.Threading..::..ThreadCultureScope

See Also