C# String ToLower(CultureInfo)

Description

String ToLower(CultureInfo) returns a copy of this string converted to lowercase, using the casing rules of the specified culture.

Syntax

String.ToLower(CultureInfo) has the following syntax.


public string ToLower(
  CultureInfo culture
)

Parameters

String.ToLower(CultureInfo) has the following parameters.

  • culture - An object that supplies culture-specific casing rules.

Returns

String.ToLower(CultureInfo) method returns The lowercase equivalent of the current string.

Example

Sample for String.ToLower(CultureInfo)


using System;//from   w w  w  .  j  av a  2  s. c o  m
using System.Globalization;

class Sample 
{
    public static void Main() 
    {
        String str = "java2s.com";
        
        str = str.ToLower(new CultureInfo("en-US", false));
        
        Console.WriteLine(str);
    }
}

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