Thread culture properties don't work consistently across operating systems and runtimes when used against any thread other than the current thread.
-
In .NET Core, if a thread tries to read or write these properties on a different thread, an
InvalidOperationException
is thrown. -
In .NET Framework, setting these properties isn't reliable for a different thread.
Use CultureInfo.CurrentCulture
and CultureInfo.CurrentUICulture
instead.