0
Thread.CurrentThread.CurrentCulture.NumberFormat.CurrencySymbol = "$";
decimal value = 500;
Trace.TraceInformation("{0:C}", value);
Trace.TraceInformation(string.Format("{0:C}", value));
產生以下輸出:System.Diagnostics.Trace忽略文化設置
Information: 0 : ¤500.00
Information: 0 : 500,00$
這意味着它要麼執行在不同的線程格式化或忽略Thread.CurrentThread.CurrentCulture
(可能與一個不變的替換它)。爲什麼?? MSDN keeps silence。