Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static string UppercaseFirst(string s)
- {
- if (string.IsNullOrEmpty(s))
- {
- return string.Empty;
- }
- s.ToLower();
- char[] a = s.ToCharArray();
- a[0] = char.ToUpper(a[0]);
- return new string(a);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement