Changeset 4068 for trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.LibSVM/1.6.3/LibSVM-1.6.3/TemporaryCulture.cs
- Timestamp:
- 07/22/10 00:44:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.LibSVM/1.6.3/LibSVM-1.6.3/TemporaryCulture.cs
r2645 r4068 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Globalization; 1 using System.Globalization; 6 2 using System.Threading; 7 3 8 namespace SVM 9 { 10 internal static class TemporaryCulture 11 { 12 private static CultureInfo _culture; 4 namespace SVM { 5 internal static class TemporaryCulture { 6 private static CultureInfo _culture; 13 7 14 public static void Start() 15 { 16 _culture = Thread.CurrentThread.CurrentCulture; 17 Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; 18 } 8 public static void Start() { 9 _culture = Thread.CurrentThread.CurrentCulture; 10 Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; 11 } 19 12 20 public static void Stop() 21 { 22 Thread.CurrentThread.CurrentCulture = _culture; 23 } 13 public static void Stop() { 14 Thread.CurrentThread.CurrentCulture = _culture; 24 15 } 16 } 25 17 }
Note: See TracChangeset
for help on using the changeset viewer.