C# String ToUpper()
Description
String ToUpper()
returns a copy of this string converted
to uppercase.
Syntax
String.ToUpper()
has the following syntax.
public string ToUpper()
Returns
String.ToUpper()
method returns The uppercase equivalent of the current string.
Example
The following example calls the ToUpper method.
using System;/* w w w . j av a 2 s . c om*/
public class Example
{
public static void Main()
{
string string1 = "asdf".ToUpper();
Console.WriteLine(string1);
}
}
The code above generates the following result.