To Title Case - CSharp System

CSharp examples for System:String Case

Description

To Title Case

Demo Code


using System.Text.RegularExpressions;
using System.Linq;
using System.Globalization;

public class Main{
        public static string ToTitleCase(this string text)
        {/*  w w w.j  av  a  2s .  c  o m*/
            return CultureInfo.CurrentCulture.TextInfo.ToTitleCase(text);
        }
}

Related Tutorials