///<summary> /// Returns the input string with the first character converted to uppercase ///</summary> publicstaticstringFirstLetterToUpperCase(thisstring s) { if (string.IsNullOrEmpty(s)) thrownew ArgumentException("There is no first letter");
char[] a = s.ToCharArray(); a[0] = char.ToUpper(a[0]); returnnewstring(a); }