System.Globalization.TextInfo.ToUpper Method

Converts the specified character to uppercase.

Syntax

public virtual char ToUpper (char c)

Parameters

c
The character to convert to uppercase.

Returns

The specified character converted to uppercase.

Remarks

Casing semantics depend on the culture in use. For the invariant culture, the casing semantics are not culture-sensitive. For a specific culture, the casing semantics are sensitive to that culture.

If a security decision depends on a string comparison or a case-change operation, the application should use the CultureInfo.InvariantCulture to ensure that the behavior is consistent regardless of the culture settings of the system. However, the invariant culture must be used only by processes that require culture-independent results, such as system services. Otherwise, it produces results that might be linguistically incorrect or culturally inappropriate.

For more information on cultures, see System.Globalization.CultureInfo.

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0