Created
August 1, 2014 16:06
-
-
Save scorta/7b5bd6176fa255241ea6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private string CapitalizedString(string input) | |
{ | |
string[] arr = input.Split(' '); | |
string result = string.Empty; | |
foreach (string a in arr) | |
{ | |
result += a.First().ToString().ToUpper() + a.Substring(1) + " "; | |
} | |
return result.Trim(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment