Converting string to title case (camelcase) in C#

Smith
Smith
None
2568 Points
74 Posts

Hi,

Converting string to title case (camelcase) in C#

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

Share:   fb twitter linkedin
Answers
NiceOne Team
NiceOne...
Editor
1382 Points
14 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
None
2568 Points
74 Posts
         

Hi,

Thanks ,it's working fine for me.

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