«« Next » « Previous
«« Next » « Previous

Link Details

Link 80253 thumbnail

By mswatcher
via aspdotnetfaq.com
Submitted: May 10 / 01:07

Often we need to capitalize the first letters of some word or some text (for example when we want to display users name or city name etc). Since string class does not have a method to do this we could think that there is no built-in solution in C# for this problem... But a little digging trough MSDN would help us find ToTitleCase method of TextInfo class in System.Globalization namespace that does exactly what we need: capitalizes the first letter of each word in the string.
  • 2
  • 0
  • 65
  • 6

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (2)



Voters Against This Link (0)