.Net 4.0 中的 DefaultThreadCurrentUICulture
DefaultThreadCurrentUICulture in .Net 4.0
你好,我有一个用 .Net 4.5 编写的代码
CultureInfo.DefaultThreadCurrentUICulture = value;
现在我需要在 .NET 4.0 中使用此代码,但似乎此代码在 .NET 4.0 中不可用
.NET 4.0 中的相同代码是什么?我是新人,请帮忙
我通常这样设置我的申请文化:
using System.Globalization;
using System.Threading;
Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("fr-CA");
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("fr-CA");
如果您正在处理多线程应用程序,则需要在每个线程的开头设置它。
你好,我有一个用 .Net 4.5 编写的代码
CultureInfo.DefaultThreadCurrentUICulture = value;
现在我需要在 .NET 4.0 中使用此代码,但似乎此代码在 .NET 4.0 中不可用 .NET 4.0 中的相同代码是什么?我是新人,请帮忙
我通常这样设置我的申请文化:
using System.Globalization;
using System.Threading;
Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("fr-CA");
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("fr-CA");
如果您正在处理多线程应用程序,则需要在每个线程的开头设置它。