Explain how to prepare culture-specific formatting in .NET - DOT.NET

Explain how to prepare culture-specific formatting in .NET.

- The NumberFormatInfo class is used to define how symbols, currencies etc. are formatted based on specific cultures.

- The CutureInfo class can be used for this purpose.

- It represents information about a specific culture, including the culture names, the writing system, and the calendar.

- It also provides an access to objects that provide information for common operations like date formatting and string sorting.

Example:
using System;
using System.Globalization;

public class TestClass
{
   public static void Main()
   {

       int i = 100;   // Creates a CultureInfo for English in the U.S.

       CultureInfo us = new CultureInfo("en-US");   // Display i formatted as currency for us.

       Console.WriteLine(i.ToString("c", us));   // Creates a CultureInfo for French

       CultureInfo fr = new CultureInfo("fr-FR");   //Displays i formatted as currency for france

       Console.WriteLine(i.ToString("c", fr));

   }
}
Explain the use of Resource Manager Class in .NET - DOT.NET
The ResourceManager class performs: A look up for culture-specific resources,....
What is XCopy? - DOT.NET
XCopy command is an advanced version of the copy command used to copy or move the files or directories.....
What is the purpose of a bootstrapper application? - DOT.NET
A bootstrapper eases the installation of the various required components for an application...
Post your comment