fCraft.FormatUtil.UppercaseFirst C# (CSharp) Method

UppercaseFirst() private method

private UppercaseFirst ( [ s ) : string
s [
return string
        public static string UppercaseFirst([NotNull] this string s) {
            if (s == null) throw new ArgumentNullException("s");
            if (string.IsNullOrEmpty(s)) {
                return string.Empty;
            }
            char[] a = s.ToCharArray();
            a[0] = char.ToUpper(a[0]);
            return new string(a);
        }

Same methods

FormatUtil::UppercaseFirst ( this s ) : string