Last active
January 9, 2019 15:41
-
-
Save LoriBru/f54e0a37b1b5f93462d7dfd976cd535d to your computer and use it in GitHub Desktop.
Change thread invariant culture to mantain a common separator for decimal numbers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; | |
| var ci = (CultureInfo)CultureInfo.CurrentCulture.Clone(); | |
| ci.NumberFormat.NumberDecimalSeparator = "."; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment