Convert Text to Sentence - C#
To convert any given sentence into Title Case, use the following code.
-----------------------
If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
public static string PropCase(string strText)Ofcourse, you have to use the Globalization class to get the CultureInfo method be available for conversion.
{
return new
CultureInfo("en").TextInfo.ToTitleCase(strText.ToLower());
}
-----------------------
If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
Comments