C#StringToUpper
ToLower

ToUpperString

Trim

Returns a copy of this string converted to uppercase.

Syntax

str.ToUpper()

Example

Enter values below to update the example in real time.

string
Console
WriteLine
ToUpper
string text = "hello world";
Console.WriteLine(text.ToUpper());   // "HELLO WORLD"