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.