Free cookie consent management tool by TermsFeed Policy Generator

source: branches/Persistence Test/LibSVM/TemporaryCulture.cs @ 4120

Last change on this file since 4120 was 2415, checked in by gkronber, 15 years ago

Updated LibSVM project to latest version. #774

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.