.NET Standard Equivalent Thread.CurrentCulture

With the full .NET platform, you can get / set the current thread culture and user interface culture using:

Thread.CurrentThread.CurrentCulture = culture; Thread.CurrentThread.CurrentUICulture = culture; 

I am netstandard1.n library to netstandard1.n ( n must be defined) and the detected Thread class does not define CurrentCulture and CurrentUICulture .

Is there an alternative API for this?

+6
source share
1 answer

Use CultureInfo static elements instead:

 CultureInfo.CurrentCulture = culture; CultureInfo.CurrentUICulture = culture; 
+9
source

Source: https://habr.com/ru/post/1011861/


All Articles