Steps to prepare culture-specific formatting - C#.NET

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));
   }
}
Steps to implement localizability to the user interface - C#.NET
Steps to implement localizability to the user interface - Implementation consists of basically translating the UI...
What are Trace Listeners and Trace Switches? - C#.NET
What are Trace Listeners and Trace Switches? - Trace listeners are objects that are used to receive store and route tracing information...
How to implement tracing with an example using C#.NET
Explain how to implement tracing - In web.config, set EnableTracing=”true”...
Post your comment