This documentation is archived and is not being maintained.

Char.ToUpper Method (Char)

.NET Framework 1.1

Converts the value of a Unicode character to its uppercase equivalent.

[Visual Basic]
Overloads Public Shared Function ToUpper( _
   ByVal c As Char _
) As Char
[C#]
public static char ToUpper(
 char c
);
[C++]
public: static __wchar_t ToUpper(
 __wchar_t c
);
[JScript]
public static function ToUpper(
   c : Char
) : Char;

Parameters

c
A Unicode character.

Return Value

The uppercase equivalent of c.

-or-

The unchanged value of c, if c is already uppercase or not alphabetic.

Remarks

Casing rules are obtained from the current culture.

Use String.ToUpper to convert a string to uppercase.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Char Structure | Char Members | System Namespace | Char.ToUpper Overload List | String.ToUpper | Char.ToLower

Show: