Skip to content

CultureScope

Namespace: SideXP.Core | Inherits from: IDisposable

public class CultureScope : IDisposable

Sets the culture of a thread. This is meant to be used in a using statement.

Constructors

CultureScope()

public CultureScope()

Applies InvariantCulture to the current thread.

CultureScope(CultureInfo)

public CultureScope(CultureInfo culture)

Applies the given culture to the current thread.

Parameters

  • culture: The culture to apply.

CultureScope(Thread)

public CultureScope(Thread thread)

Applies InvariantCulture to the given thread.

CultureScope(Thread, CultureInfo)

public CultureScope(Thread thread, CultureInfo culture)

Applies the given culture on the given thread.

Parameters

  • culture: The culture to apply.
  • thread: The thread you want to set the culture.

Properties

Invariant

public static CultureScope Invariant

Applies InvariantCulture to the current thread.

Methods

Dispose()

public void Dispose()

Called when this object is disposed.