using System.Globalization; using System.Threading; CultureInfo cultureInfo = Thread.CurrentThread.CurrentCulture; TextInfo textInfo = cultureInfo.TextInfo; string result = textInfo.ToTitleCase("this is test");
If the string is in uppercase first convert it to lowercase using the ToLower() method.
No comments:
Post a Comment