Skip to content

Instantly share code, notes, and snippets.

@LoriBru
Last active January 9, 2019 15:41
Show Gist options
  • Select an option

  • Save LoriBru/f54e0a37b1b5f93462d7dfd976cd535d to your computer and use it in GitHub Desktop.

Select an option

Save LoriBru/f54e0a37b1b5f93462d7dfd976cd535d to your computer and use it in GitHub Desktop.
Change thread invariant culture to mantain a common separator for decimal numbers.
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