C# String ToLower()

Description

String ToLower() returns a copy of this string converted to lowercase.

Syntax

String.ToLower() has the following syntax.


public string ToLower()

Returns

String.ToLower() method returns A string in lowercase.

Example

The following example converts several mixed case strings to lowercase.


//w w  w  .  j  a v  a2  s . c o m
using System;

public class ToLowerTest {
    public static void Main() {
        Console.WriteLine("java2s.com".ToLower());

    }
}

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