Martin Han
Martin Han

Reputation: 113

What is the difference between System.Globalization.CultureInfo.CurrentUICulture and System.Threading.Thread.CurrentUICulture

What I can see in documents provided by Microsoft is only that one is static one is not static.

https://learn.microsoft.com/en-us/dotnet/api/system.threading.thread.currentuiculture?view=net-5.0 https://learn.microsoft.com/en-us/dotnet/api/system.globalization.cultureinfo.currentuiculture?view=net-5.0

They looks like having identical function, are they?

Upvotes: 1

Views: 235

Answers (1)

Tim Schmelter
Tim Schmelter

Reputation: 460340

They are identical because CultureInfo.CurrentUICulture calls System.Threading.Thread.CurrentUICulture: Source

Upvotes: 1

Related Questions