C# Char ToLower(Char, CultureInfo)
Description
Char ToLower(Char, CultureInfo)
converts the value
of a specified Unicode character to its lowercase equivalent using specified
culture-specific formatting information.
Syntax
Char.ToLower(Char, CultureInfo)
has the following syntax.
public static char ToLower(
char c,
CultureInfo culture
)
Parameters
Char.ToLower(Char, CultureInfo)
has the following parameters.
c
- The Unicode character to convert.culture
- An object that supplies culture-specific casing rules.
Returns
Char.ToLower(Char, CultureInfo)
method returns The lowercase equivalent of c, modified according to culture, or the unchanged
value of c, if c is already lowercase or not alphabetic.
Example
The following code example demonstrates ToLower.
//from w ww. j a va2 s . c om
using System;
using System.Globalization; // for CultureInfo
public class ToLowerSample {
public static void Main() {
Console.WriteLine(Char.ToLower('A',CultureInfo.InvariantCulture ));
}
}
The code above generates the following result.