Culture And Region Information Builder : CultureAndRegionInfoBuilder : I18N Internationalization C# Examples


C# Examples » I18N Internationalization » CultureAndRegionInfoBuilder »

 

Culture And Region Information Builder









    
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();
        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo I18N Internationalization
» CultureAndRegionInfoBuilder