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 214 views
214 views asked Dec 30, 2016 by avibootz
1 answer 245 views
245 views asked Dec 31, 2016 by avibootz
1 answer 271 views
1 answer 320 views
1 answer 309 views
1 answer 308 views
...