source:
tags/3.3.4/HeuristicLab.ExtLibs/HeuristicLab.LibSVM/1.6.3/LibSVM-1.6.3/TemporaryCulture.cs
Last change on this file was 4068, checked in by swagner, 14 years ago | |
---|---|
File size: 440 bytes |
Line | |
---|---|
1 | using System.Globalization; |
2 | using System.Threading; |
3 | |
4 | namespace 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.