new CultureAndRegionInfoBuilder : CultureAndRegionInfoBuilder « System.Globalization « C# / C Sharp by API






new CultureAndRegionInfoBuilder

   


using System;
using System.Globalization;

public class MainClass
{
    static void Main() {
        CultureAndRegionInfoBuilder cib = new CultureAndRegionInfoBuilder("x-en-US-metric", CultureAndRegionModifiers.None );

        cib.LoadDataFromCultureInfo( new CultureInfo("en-US") );
        cib.LoadDataFromRegionInfo( new RegionInfo("US") );

        cib.IsMetric = true;

        cib.Save( "x-en-US-metric.ldml" );

        cib.Register();
    }
}

   
    
    
  








Related examples in the same category

1.CultureAndRegionInfoBuilder.LoadDataFromCultureInfo
2.CultureAndRegionInfoBuilder.LoadDataFromRegionInfo
3.CultureAndRegionInfoBuilder.Save(String fileName)