Uppercase a String in C#

In this article we will discuss about how to convert a lowercase string into uppercase letter in C#.
  • 2969

The ToUpper method of a string converts a string to uppercase . The following code shows how to create an uppercase string.
 

string sentence = "Mahesh Chand is an author and founder of C# Corner";
Console
.WriteLine("Original String: {0}", sentence);
Console.WriteLine("Uppercase: {0}", sentence.ToUpper());
Console.WriteLine("Lowercase: {0}", sentence.ToLower());

 
Further Readings
 
You may also want to read these related articles.

Ask Your Question 

Got a programming related question? You may want to post your question here
 

Categories

More Articles

© 2018 DotNetHeaven. All rights reserved.