Windows Dev Center

Char.ToUpper Method (Char, CultureInfo)

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

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public static char ToUpper(
	char c,
	CultureInfo culture
)

Parameters

c
Type: System.Char
A Unicode character.
culture
Type: System.Globalization.CultureInfo
An object that supplies culture-specific casing rules.

Return Value

Type: System.Char
The uppercase equivalent of c, modified according to culture, or the unchanged value of c if c is already uppercase, has no uppercase equivalent, or is not alphabetic.

ExceptionCondition
ArgumentNullException

culture is null.

Use String.ToUpper to convert a string to uppercase.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft