ToUpper(); function in C#
This function is used to convert the string into uppercase character.
Example
using System;
namespace program
{
class Program
{
static void Main(string[] args)
{
string str1= "hello";
string str5 = str1.ToUpper();
Console.WriteLine(str5);
Console.ReadKey();
}
}
}
Output
HELLO
This function is used to convert the string into uppercase character.
Example
using System;
namespace program
{
class Program
{
static void Main(string[] args)
{
string str1= "hello";
string str5 = str1.ToUpper();
Console.WriteLine(str5);
Console.ReadKey();
}
}
}
Output
HELLO