26 lines
596 B
C#
26 lines
596 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Globalization;
|
|
using System.Threading;
|
|
|
|
namespace SVM.BotSharp.MachineLearning
|
|
{
|
|
internal static class TemporaryCulture
|
|
{
|
|
private static CultureInfo _culture;
|
|
|
|
public static void Start()
|
|
{
|
|
_culture = Thread.CurrentThread.CurrentCulture;
|
|
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
|
|
}
|
|
|
|
public static void Stop()
|
|
{
|
|
Thread.CurrentThread.CurrentCulture = _culture;
|
|
}
|
|
}
|
|
}
|