Csharp/C Sharp/Development Class/CultureAndRegionInfoBuilder

Материал из .Net Framework эксперт
Перейти к: навигация, поиск

Use CultureAndRegionInfoBuilder

using System;
using System.Collections.Generic;
using System.Text;
using System.Globalization;

class Program {
    static void Main(string[] args) {
        CultureAndRegionInfoBuilder styria = new CultureAndRegionInfoBuilder(
            "de-AT-ST", CultureAndRegionModifiers.None);
        styria.LoadDataFromCultureInfo(new CultureInfo("de-AT"));
        styria.LoadDataFromRegionInfo(new RegionInfo("AT"));
        styria.Register();
    }
}