Int32.ToString(String format,CultureInfo info) : Int32 « System « C# / C Sharp by API






Int32.ToString(String format,CultureInfo info)

 


using System;
using System.Globalization;
using System.Threading;

class Program {
    static void Main(string[] args) {
        int val = 1234567890;
        Console.WriteLine(val.ToString("N"));
        Console.WriteLine(val.ToString("N",new CultureInfo("fr-FR")));
        Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE");
        Console.WriteLine(val.ToString("N"));
    }
}
    

   
  








Related examples in the same category

1.Int32 == Int32
2.Int32.Equals(23)
3.Int32.GetHashCode
4.Int32.GetType()
5.Int32.Parse(String value)
6.UInt32.MinValue
7.Int32.ToString