C# Char ToLower(Char)

Description

Char ToLower(Char) converts the value of a Unicode character to its lowercase equivalent.

Syntax

Char.ToLower(Char) has the following syntax.


public static char ToLower(
  char c
)

Parameters

Char.ToLower(Char) has the following parameters.

  • c - The Unicode character to convert.

Returns

Char.ToLower(Char) method returns The lowercase equivalent of c, or the unchanged value of c, if c is already lowercase or not alphabetic.

Example

The following example demonstrates ToLower.


// w  ww .  j av  a  2s . co m
using System;
using System.Globalization;  // for CultureInfo 

public class ToLowerSample {
  public static void Main() {
    Console.WriteLine(Char.ToLower('A'));        // Output: "a"
  }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version