try
{
...
}
catch (Exception ex)
{
CultureInfo.CurrentCulture.ClearCachedData();
System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
MessageBox.Show(ex.Message);
}
但是ex.Message
仍以中文显示。我该如何解决?