Char.ToLower Method (Char)

July 28, 2014

Converts the value of a Unicode character to its lowercase equivalent.

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

public static char ToLower(
	char c
)

Parameters

c
Type: System.Char
A Unicode character.

Return Value

Type: System.Char
The lowercase equivalent of c, or the unchanged value of c, if c is already lowercase or not alphabetic.

Casing rules are obtained from the current culture.

Use String.ToLower to convert a string to lowercase.

The following example demonstrates ToLower.


using System;
using System.Globalization;  // for CultureInfo

public class Example
{
   public static void Demo(System.Windows.Controls.TextBlock outputBlock)
   {
      outputBlock.Text += Char.ToLower('A') + "\n";				// Output: "a"
   }
}


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft