Rev | Line | |
---|
[2415] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
| 5 | using System.Globalization;
|
---|
| 6 | using System.Threading;
|
---|
| 7 |
|
---|
| 8 | namespace 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.