The ToUpper()
function converts a string to uppercase.
The following figure shows a visual representation of the ToUpper()
function.
string_name.ToUpper()
string_name
is the name of the string which is to be converted to uppercase
The ToUpper()
function does not require a parameter.
The ToUpper()
function returns a string that is converted to uppercase.
class String{static void Main(){//stringSystem.Console.WriteLine("('educative').ToUpper(): "+ ("educative").ToUpper());//string with numberSystem.Console.WriteLine("('educative09').ToUpper(): "+ ("educative09").ToUpper());}}