String.ToUpper(CultureInfo) : String Case « String « C# / CSharp Tutorial

using System;
using System.Globalization;

class Sample 
    public static void Main() 
        String str1 = "this is a test";
        String str2, str3;
        str2 = str1.ToUpper(new CultureInfo("en-US", false));
        str3 = str1.ToUpper(new CultureInfo("tr-TR", false));
        Console.WriteLine(String.CompareOrdinal(str2, str3));
        foreach (ushort u in str1)
          Console.WriteLine("{0:x4} ", u);

        foreach (ushort u in str2)
          Console.WriteLine("{0:x4} ", u);

        foreach (ushort u in str3)
          Console.WriteLine("{0:x4} ", u);


5.9.String Case
5.9.1.Create upper and lowercase versions of a string
5.9.2.Case Comparison
5.9.3.Change String case according to CultureInfo