Char.ToLower Method (Char)

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.

Notes to Callers

Starting in Silverlight 4, the behavior of the Char.ToLower(Char) method has changed. In Silverlight 4, it converts c to lowercase using the casing rules of the current culture. This conforms to the behavior of the Char.ToLower(Char) method in the full .NET Framework. In Silverlight 2 and Silverlight 3, Char.ToLower(Char) uses the casing rules of the invariant culture. If the common language runtime determines that a Silverlight-based application was compiled against Silverlight 2 or Silverlight 3, it performs an ordinal comparison; otherwise, it performs a culture-sensitive comparison.

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"
   }
}


Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: