Explain steps to prepare culture-specific formatting.
The NumberFormatInfo class is used to define how symbols, currencies etc are formatted based on specific cultures.
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));
}
}