private string FirstLetterToUpper(string word) { StringBuilder sb = new StringBuilder(); if (!string.IsNullOrWhiteSpace(word)) { sb.Append(word.Substring(0, 1).ToUpper()); sb.Append(word.Substring(1, word.Length - 1)); } return sb.ToString(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)