Created
August 17, 2011 09:31
-
-
Save hdznrrd/1151189 to your computer and use it in GitHub Desktop.
disable localized exception error message
This file contains 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
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