Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Lister les informations des paramètres régionaux

énumérer,toutes,les,cultures,disponibles
{filelink=19553}

using System;
using System.Globalization;
using System.Threading;
 
class ExempleCultureInfo
{
  static void Main(string[] args)
  {
      CultureInfo[] lesCultures;
      RegionInfo Regions;
 
      lesCultures = CultureInfo.GetCultures(CultureTypes.SpecificCultures);
      foreach (CultureInfo culture in lesCultures)
	  {
         Regions = new RegionInfo(culture.LCID);
         Console.WriteLine(Regions.TwoLetterISORegionName.ToString().PadRight(5, ' ') +
               "," + Regions.EnglishName.PadRight(40, ' ') +
               "," + culture.LCID.ToString());
      }
   }
}

No comments yet.

Leave a Comment