Skip to content

Instantly share code, notes, and snippets.

@hdznrrd
Created August 17, 2011 09:31
Show Gist options
  • Save hdznrrd/1151189 to your computer and use it in GitHub Desktop.
Save hdznrrd/1151189 to your computer and use it in GitHub Desktop.
disable localized exception error message
CultureInfo c = new CultureInfo("en-US");
// make formatting of output adhere to culture (eg. number format)
Thread.CurrentThread.CurrentCulture = cult;
// force exceptions to be displayed localized to selected culture
Thread.CurrentThread.CurrentUICulture = cult;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment