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
public static char ToUpper(
 char c
public: static __wchar_t ToUpper(
 __wchar_t c
public static function ToUpper(
   c : Char
) : Char;


A Unicode character.

Return Value

The uppercase equivalent of c.


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


Casing rules are obtained from the current culture.

Use String.ToUpper to convert a string to uppercase.


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