Mono Class Library: System.Char Overview | Members

System.Char.ToUpper Method

Converts a char to its uppercase equivalent. [Edit]

public static char ToUpper (char c)

Parameters

c
A Unicode character. [Edit]

Returns

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. [Edit]

Remarks

Documentation for this section has not yet been entered. [Edit]

Example

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 *

Requirements

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