how to capitlize the first letter in every substring in c# code example
Example 1: c# capitalize first letter of each word in a string
string s = "THIS IS MY TEXT RIGHT NOW";
s = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(s.ToLower());
Example 2: c# capitalize first letter of each word in a string
string s = "THIS IS MY TEXT RIGHT NOW";
s = System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(s.ToLower());