This documentation is archived and is not being maintained.

Char.ToUpper Method (Char, CultureInfo)

.NET Framework 1.1

Converts the value of a specified Unicode character to its uppercase equivalent using specified culture-specific formatting information.

[Visual Basic]
Overloads Public Shared Function ToUpper( _
   ByVal c As Char, _
   ByVal culture As CultureInfo _
) As Char
public static char ToUpper(
 char c,
 CultureInfo culture
public: static __wchar_t ToUpper(
 __wchar_t c,
 CultureInfo* culture
public static function ToUpper(
   c : Char,
 culture : CultureInfo
) : Char;


A Unicode character.
A System.Globalization.CultureInfo object that supplies culture-specific casing rules, or a null reference (Nothing in Visual Basic).

Return Value

The uppercase equivalent of c, modified according to culture.


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


Exception Type Condition
ArgumentNullException culture is a null reference (Nothing in Visual Basic).


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

See Also

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