BlindPrediction.Program.FirstCharToUpper C# (CSharp) Méthode

FirstCharToUpper() static private méthode

static private FirstCharToUpper ( string input ) : string
input string
Résultat string
        static string FirstCharToUpper(string input)
        {
            if (String.IsNullOrEmpty(input))
                throw new ArgumentException("ARGH!");
            return input.First().ToString().ToUpper() + input.Substring(1);
        }