Google Box
 News
  Tips Home :

How to find out the current culture in a .NET application.

Doc TypeTips & Tricks
Email SettingMake Public
Email Addresssteve dot robinson at notes411 dot com
Keep informed?Yes
AuthorSteve C Robinson
Company NameNotes411
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;


Add Response   ||  Add a Document



Responses to "How to find out the current culture in a .NET application.":

© 2003 notes411.com. All rights reserved. Disclaimer. site designed & developed by appsworks.com
Lotus Notes is a registered trademark of IBM. This site is not affiliated with IBM or Lotus.