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