Converting string to title case (camelcase) in C#

Smith
Smith
Participant
2728 Points
76 Posts

Hi,

Converting string to title case (camelcase) in C#

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

Share:   fb twitter linkedin
Answers
NiceOne Team
NiceOne...
Editor
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
Participant
2728 Points
76 Posts
         

Hi,

Thanks ,it's working fine for me.

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