BF2Statistics.StringExtensions.LowercaseFirst C# (CSharp) Method

LowercaseFirst() public static method

Takes a string, and Lowercases the first letter
public static LowercaseFirst ( this s ) : string
s this The input string
return string
        public static string LowercaseFirst(this string s)
        {
            // Make sure we dont have an empty input
            if (String.IsNullOrWhiteSpace(s))
                return String.Empty;

            // Convert to character array
            char[] a = s.ToCharArray();
            a[0] = Char.ToLower(a[0]);
            return new String(a);
        }