Interviews - C# Corner

Surya Pratap Singh
How to convert string lowercase , upper case and uppercase first letter. ?
By Surya Pratap Singh in C# Strings onSep 19 2015
  • Surya Pratap Singh
    Sep, 2015 19

    It's easy to convert string all this case this code copy here and paste your visual studio using System; using System.Globalization; using System.Threading; namespace ConsoleApplication10 {class Program{static void Main(string[] args){string str = "surya pratap singh";CultureInfo culture = Thread.CurrentThread.CurrentCulture;TextInfo text = culture.TextInfo;Console.WriteLine(text.ToTitleCase(str));Console.WriteLine(text.ToUpper(str));Console.WriteLine(text.ToLower(str));Console.ReadLine();}} }

    • 2
  • Munesh Sharma
    May, 2016 31

    http://www.dotnetperls.com/uppercase-first-letter

    • 1

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS