Cosmic Q&A
How can I convert a String to Upper Case in C#?
Answer
We can convert a string to upper case using ToUpper Method.
string word = "XMarksTheSpot";
// Convert a string to upper case using ToUpper Method
Console.WriteLine(word.ToUpper());
Share this page:
Report Error in Content