Converting string to title case (camelcase) in C#

Smith
Smith
Participant
374 Points
112 Posts

Hi,

Converting string to title case (camelcase) in C#

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

Share:   fb twitter linkedin
Answers
NiceOne Team
NiceOne...
Admin
404 Points
67 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
374 Points
112 Posts
         

Hi,

Thanks ,it's working fine for me.

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