How to Capitalize Every First Letter of a String using .NET

You have a string and you want to capitalize every first letter of every word of that string just like Title case feature of Microsoft Word. You can use ToTitleCase method as shown in the code snippet below.

Import System.Globalization namespace on top of your file to use CultureInfo class.