Prev | Current Page 278 | Next

Guy Fouch?©, Trey Nash

"Accelerated VB 2008"

GetFormat(). The format provider initializes the NumberFormatInfo
instance??™s properties based on the culture it represents.
3. It uses the NumberFormatInfo instance to format the number appropriately while creating
a string representation of this based upon the specification of the format string.
Creating and Registering Custom CultureInfo Types
The globalization capabilities of the .NET Framework have been enhanced with the introduction
of a new class named CultureAndRegionInfoBuilder in the System.Globalization namespace.
Using CultureAndRegionInfoBuilder, you now have the capability to define and introduce new
culture and region information into the system and register them for global usage. Similarly, you
can modify preexisting culture and region information on the system and serialize the information
into a Locale Data Markup Language (LDML) file, which is a standard-based XML format.
Once you register your new culture and region with the system, your applications can create
instances of CultureInfo and RegionInfo using the registered string-based name.
When naming your new cultures, you should adhere to the standard format for naming
cultures. The format is generally [prefix-]language[-region][-suffix[. . .]], where the
language identifier is the only required part and the other pieces are optional.


Pages:
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290
śmieszne dowcipy dieta light życzenia ślubne portal Connie Talbot