XploreDotNet
Known Is A Drop,UnKnown Is An Ocean....
Njoy Programming
Wednesday, July 23, 2008
How to Capitalize the First Letter (Title Case) of All Words in a string in C#
To Make our string as TitleCase use ToTitleCase method of TextInfo class in
System.Globalization
namespace that does exactly what we need
CultureInfo
.CurrentCulture.TextInfo.ToTitleCase("place your string here");
output : Place Your String Here
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Loading...
No comments:
Post a Comment