| Doc Type | Tips & Tricks |
| Email Setting | Make Public |
| Email Address | steve dot robinson at notes411 dot com |
| Keep informed? | Yes |
| Author | Steve C Robinson |
| Company Name | Notes411 |
| Category | .NET, Culture, Globalization |
| Modified | 22/09/2006 11:05:37 |
| Subject | How to find out the current culture in a .NET application. |
The code below is using c#. The current
sessions thread contains a CultureInfo object. We can instantiate a CultureInfo
object to get hold of Culture information like Name e.g. en-GB) or DiplayName
e.g. English (UnitedKingdom) etc.
CultureInfo ci = System.Threading.Thread.CurrentThread.CurrentCulture;
|