Aqueduct.Extensions.Inflector.ToTitleCase C# (CSharp) Method

ToTitleCase() public static method

Converts the string to title case.
public static ToTitleCase ( this word ) : string
word this The word.
return string
        public static string ToTitleCase(this string word)
        {
            return Regex.Replace(ToHumanCase(AddUnderscores(word)), @"\b([a-z])",
                match => match.Captures[0].Value.ToUpper());
        }