C# Char ToLowerInvariant
Description
Char ToLowerInvariant
converts the value of a Unicode
character to its lowercase equivalent using the casing rules of the invariant
culture.
Syntax
Char.ToLowerInvariant
has the following syntax.
public static char ToLowerInvariant(
char c
)
Parameters
Char.ToLowerInvariant
has the following parameters.
c
- The Unicode character to convert.
Returns
Char.ToLowerInvariant
method returns The lowercase equivalent of the c parameter, or the unchanged value of c,
if c is already lowercase or not alphabetic.
Example
The following code example demonstrates ToLowerInvariant.
//from w w w . j ava2 s . co m
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.