An alternative to UBB.threads
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
FLocal/Patcher/Util/CultureReplacementWrapper.cs

26 lines
609 B

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
namespace Patcher
{
class CultureReplacementWrapper : IDisposable
{
private readonly CultureInfo originalCulture;
public CultureReplacementWrapper(CultureInfo newCulture)
{
this.originalCulture = System.Threading.Thread.CurrentThread.CurrentCulture;
System.Threading.Thread.CurrentThread.CurrentCulture = newCulture;
}
void IDisposable.Dispose()
{
System.Threading.Thread.CurrentThread.CurrentCulture = this.originalCulture;
}
}
}