Change String Case correctly

Madhu.b.rokkam
Posted by Madhu.b.rokkam under C# category on | Points: 40 | Views : 2403
The correct way to change case of a string to uppr case.

class Program3
{
static void Main(string[] args)
{
string value = "dotnet";
Console.WriteLine("Original: " + value);
Console.WriteLine("Uppercase (invariant): " + value.ToUpperInvariant());
Console.Read();
}
}


Result

DOTNET

Comments or Responses

Login to post response