Tuesday, April 24, 2012

C# making string's first letter UpperCase


    public static string first_Char_To_Upper(string input)
    {
        input = input.ToLower();
        return input.First().ToString().ToUpper() + String.Join("", input.Skip(1));
    }

No comments:

Post a Comment