How to convert a string to upper case (all upper) in C#

1 Answer

0 votes
using System;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = "C# programming is nice";

            Console.WriteLine(s.ToUpper());    // C# PROGRAMMING IS NICE
        }
    }
}

/*
run:
 
C# PROGRAMMING IS NICE

*/


answered Feb 19, 2015 by avibootz

Related questions

1 answer 120 views
120 views asked Dec 30, 2016 by avibootz
1 answer 157 views
157 views asked Dec 31, 2016 by avibootz
1 answer 166 views
1 answer 216 views
1 answer 215 views
1 answer 206 views
...