Return to Snippet

Revision: 24604
at March 5, 2010 01:24 by emregulcan


Initial Code
string strLow = "lower case";  
string strT = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(strLow);
Console.WriteLine("Lower Case to Title Case: " + strT);

string strCap = "UPPER CASE"; 
strT = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(strCap.ToLower());
Console.WriteLine("Upper Case to Title Case: " + strT);

Initial URL
http://www.devcurry.com/2009/12/convert-lowercase-and-uppercase-to.html

Initial Description

                                

Initial Title
Convert LowerCase and UpperCase to TitleCase in .NET

Initial Tags
c, convert

Initial Language
C#