new CultureInfo( "de-DE" ) : CultureInfo I18N : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » CultureInfo I18N »

 

new CultureInfo( "de-DE" )









    


using System;
using System.Globalization;

public class EntryPoint
{
    static void Main() {
        CultureInfo current  = CultureInfo.CurrentCulture;
        CultureInfo germany  = new CultureInfo( "de-DE" );
        CultureInfo russian  = new CultureInfo( "ru-RU" );

        double money = 123.45;

        string localMoney = money.ToString( "C", current );
        Console.WriteLine( localMoney+ " Local Money" );

        localMoney = money.ToString( "C", germany );
        Console.WriteLine( localMoney+ " German Money" );
        
        localMoney = money.ToString( "C", russian );
        Console.WriteLine( localMoney+ " Russian Money" );
    }
}

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» CultureInfo I18N