Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.LibSVM/1.6.3/LibSVM-1.6.3/TemporaryCulture.cs @ 8380

Last change on this file since 8380 was 4068, checked in by swagner, 14 years ago

Sorted usings and removed unused usings in entire solution (#1094)

File size: 440 bytes
Line 
1using System.Globalization;
2using System.Threading;
3
4namespace SVM {
5  internal static class TemporaryCulture {
6    private static CultureInfo _culture;
7
8    public static void Start() {
9      _culture = Thread.CurrentThread.CurrentCulture;
10      Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
11    }
12
13    public static void Stop() {
14      Thread.CurrentThread.CurrentCulture = _culture;
15    }
16  }
17}
Note: See TracBrowser for help on using the repository browser.