// Defines the string with mixed casing.
string myString = "wAr aNd pEaCe";
// Creates a TextInfo based on the "en-US" culture.
TextInfo myTI = new CultureInfo("en-US", false).TextInfo;
// Changes a string to lowercase.
Console.WriteLine("\"{0}\" to lowercase: {1}", myString, myTI.ToLower(myString));
// Changes a string to uppercase.
Console.WriteLine("\"{0}\" to uppercase: {1}", myString, myTI.ToUpper(myString));
// Changes a string to titlecase.
Console.WriteLine("\"{0}\" to titlecase: {1}", myString, myTI.ToTitleCase(myString));