Converts a char to its uppercase equivalent.
- c
- A Unicode character.
The uppercase equivalent of c, or the value of c if and only if c is already uppercase or does not have an uppercase equivalent.
Documentation for this section has not yet been entered.
The following example demonstrates the char.ToUpper(char, System.Globalization.CultureInfo) method.
C# Example
using System; public class CharToUpper { public static void Main() { Char[] cAry = {'A', 'c', '*'}; foreach (Char c in cAry) { Console.Write("Char '{0}' ToUpper is {1}", c, Char.ToUpper(c)); Console.WriteLine(); } } }The output is
Char 'A' ToUpper is A
Char 'c' ToUpper is C
Char '*' ToUpper is *
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0