Thread.CurrentThread.CurrentCulture = new CultureInfo(“it-IT”);不能正常工作

时间:2017-12-30 07:35:52

标签: c#

我正在尝试将我的程序的cultureinfo从默认的en-US更改为it-IT:

decimal x = 12000; 
            Console.WriteLine("The current culture is {0}", Thread.CurrentThread.CurrentCulture.Name);
            Console.WriteLine("currency: {0:C}", x);
            Thread.CurrentThread.CurrentCulture = new CultureInfo("it-IT");
            Console.WriteLine("The culture changed in {0}", Thread.CurrentThread.CurrentCulture.Name);
            Console.WriteLine("currency: {0:C}", x);
            Console.ReadLine();

输出是: capture

而不是问号,应该有€。 我做错了什么?

0 个答案:

没有答案