Custom Culture Creation with C#

CultureRegionAndInfoBuilder class is used when current selection of built-in cultures is not enough.

CultureInfo MyUSCulture = new CultureInfo("en-US");
RegionInfo MyUSRegion = new RegionInfo("US");
CultureAndRegionInfoBuilder MyDemoBuilder = new CultureAndRegionInfoBuilder("en-US-Microsoft", CultureAndRegionModifiers.None);
MyDemoBuilder.LoadDataFromCultureInfo(MyUSCulture);
MyDemoBuilder.LoadDataFromRegionInfo(MyUSRegion);

We can set any of the CurrencyName, CultureName, NumberFormat attributes in the same way.

Enumeration for CultureRegionAndInfoBuilder

 

NameDescription
Neutral A neutral culture
None A specific culture
Replacement Replaces an existing culture