using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Resources;
using System.Text;
using System.Threading;
using System.Globalization;
public class MainClass
{
public static void Main()
{
CultureInfo[] cultures = new CultureInfo[] {
CultureInfo.GetCultureInfo("en-US"),
CultureInfo.GetCultureInfo("tr-TR")
};
char lower = 'i';
char upper = 'I';
foreach (CultureInfo culture in cultures)
{
Thread.CurrentThread.CurrentCulture = culture;
Console.WriteLine("{0}", culture.DisplayName);
char toUpper = Char.ToUpper(lower);
Console.WriteLine(" Lower->Upper: {0} ({1:X}) -> {2} ({3:X})",lower, (int)lower, toUpper, (int)toUpper);
char toLower = Char.ToLower(upper);
Console.WriteLine(" Upper->Lower: {0} ({1:X}) -> {2} ({3:X})",upper, (int)upper, toLower, (int)toLower);
}
}
}
|