Converting string to title case (camelcase) in C#

Smith
Smith
2890 Points
78 Posts

Hi,

Converting string to title case (camelcase) in C#

Views: 10241
Total Answered: 2
Total Marked As Answer: 1
Posted On: 11-Apr-2015 05:20

Share:   fb twitter linkedin
Answers
NiceOne Team
NiceOne...
1390 Points
18 Posts
         

Hi Smith,

Use this:

string title = "war and peace";
System.Globalization.TextInfo textInfo = new System.Globalization.CultureInfo("en-US", false).TextInfo;
title = textInfo.ToTitleCase(title); //War And Peace
Posted On: 10-Apr-2015 17:12
Smith
Smith
2890 Points
78 Posts
         

Hi,

Thanks ,it's working fine for me.

Posted On: 11-Apr-2015 07:45
 Log In to Chat