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

Last change on this file since 2645 was 2645, checked in by mkommend, 14 years ago

extracted external libraries and adapted dependent plugins (ticket #837)

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