利用CurrentCulture将人民币符号更改为欧元符号
1 Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("it"); //设置为意大利 2 Console.WriteLine(string.Format("{0:C2}", 1.222323));
结果:1,22 € //欧元符号跑到后面去了
1 Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("it"); 2 Thread.CurrentThread.CurrentCulture.NumberFormat.CurrencyPositivePattern = 0; 3 .WriteLine(string.Format("{0:C2}", 1.222323));
结果:€1,22 //正确