Friday 12 October 2007

Title (InitCaps) Case Function

An easy way to make a string title case.

public static string TitleCase(string strText)
{
return new CultureInfo("en").TextInfo.ToTitleCase(strText.ToLower());
}

No comments: