X hits on this document

146 views

0 shares

0 downloads

0 comments

38 / 67

CultureAndRegionInfoBuilder Property

Source

CurrencyEnglishName

RegionInfo.CurrencyEnglishName

CurrencyNativeName

RegionInfo.CurrencyNativeName

GeoId

RegionInfo.GeoId

IsMetric

RegionInfo.IsMetric

ISOCurrencySymbol

RegionInfo.ISOCurrencySymbol

RegionEnglishName

RegionInfo.EnglishName

RegionNativeName

RegionInfo.NativeName

ThreeLetterISORegionName

RegionInfo.ThreeLetterISORegionName

ThreeLetterWindowsRegionName (Ssupplemental only)

RegionInfo.ThreeLetterWindowsRegionName

TwoLetterISORegionName

RegionInfo.TwoLetterISORegionName

14

.NET INTERNATIONALIZATION

Table 11.4

Properties Set by CultureAndRegionInfoBuilder.LoadDataFrom RegionInfo

Notice that the CompareInfo, TextInfo, ThreeLetterWindowsLanguageName, and ThreeLetterWindowsRegionName properties are set by these methods only if the culture is a supplemental culture (which, in this example, it is). For replacement cultures, these properties are set in the CultureAndRegionInfoBuilder construc- tor and are considered immutable. Consequently, if you assign values to these prop- erties for replacement cultures, they will throw an exception. This is why you can’t create a replacement custom culture that simply changes the default sort order. This code attempts to create a replacement culture for es-ES (Spanish (Spain) when the only difference is that the sort order is Traditional (0x0000040A) instead of the default International:

CultureAndRegionInfoBuilder builder = new CultureAndRegionInfoBuilder(“es-ES”, CultureAndRegionModifiers.Replacement);

Document info
Document views146
Page views146
Page last viewedSun Dec 04 19:22:06 UTC 2016
Pages67
Paragraphs859
Words13458

Comments