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 @ 5163

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

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

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