CultureInfo.CurrentCulture : CultureInfo « System.Globalization « C# / C Sharp by API






CultureInfo.CurrentCulture

 
using System;

using System.Globalization;

class MainClass
{
  static void Main(string[] args)
  {  
      int theInt = 0;    
    Console.WriteLine("IConvertible-ing System.Int32 to System.Byte");
    IConvertible itfConvert = (IConvertible)theInt;
    byte theByte = itfConvert.ToByte(CultureInfo.CurrentCulture);
    Console.WriteLine("Type code int converted to byte is: {0}", theByte.GetTypeCode());
    Console.WriteLine("Value of converted int: {0}", theByte);
  }
}

   
  








Related examples in the same category

1.new CultureInfo(String cult)
2.CultureInfo.Calendar
3.CultureInfo.CreateSpecificCulture
4.CultureInfo.CurrentUICulture
5.CultureInfo.DateTimeFormat
6.CultureInfo.DisplayName
7.CultureInfo.EnglishName
8.CultureInfo.GetCultures
9.CultureInfo.GetCultureInfo(String name)
10.CultureInfo.NativeName
11.CultureInfo.NumberFormat
12.CultureInfo.ToString()