- 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);
No comments:
Post a Comment