Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Exemple d’utilisation de la classe CultureAndRegionInfoBuilder””

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

using System;
using System.Text;
using System.Globalization;
 
class ExempleCultureEtRegion
{
    static void Main(string[] args)
	{
        // Ajouter la reference sysglobl
        CultureAndRegionInfoBuilder cultIInfoBuild = new CultureAndRegionInfoBuilder(
            "de-AT-ST", CultureAndRegionModifiers.None);
        cultIInfoBuild.LoadDataFromCultureInfo(new CultureInfo("de-AT"));
        cultIInfoBuild.LoadDataFromRegionInfo(new RegionInfo("AT"));
 
        Console.Clear();
        Console.WriteLine("Nom de la culture:. . . . . . . . . . {0}", cultIInfoBuild.CultureName);
        Console.WriteLine("Nom En anglais: . . . . . . {0}", cultIInfoBuild.CultureEnglishName);
        Console.WriteLine("Nom Local:. . . . . . . {0}", cultIInfoBuild.CultureNativeName);
 
    }*/
}

No comments yet.

Leave a Comment