How to capitalize the first character of each word, or the first character of a whole string, with C#?
As discussed in the comments of @miguel’s answer, you can use TextInfo.ToTitleCase which has been available since .NET 1.1. Here is some code corresponding to your example: string lipsum1 = “Lorem lipsum et”; // Creates a TextInfo based on the “en-US” culture. TextInfo textInfo = new CultureInfo(“en-US”,false).TextInfo; // Changes a string to titlecase. Console.WriteLine(“\”{0}\” to … Read more