Char.ToLower
Method
Definition
Overloads
| ToLower(Char, CultureInfo) |
Converts the value of a specified Unicode character to its lowercase equivalent using specified culture-specific formatting information. |
| ToLower(Char) |
Converts the value of a Unicode character to its lowercase equivalent. |
ToLower(Char, CultureInfo)
Converts the value of a specified Unicode character to its lowercase equivalent using specified culture-specific formatting information.
public static char ToLower (char c, System.Globalization.CultureInfo culture);
- c
- Char
The Unicode character to convert.
- culture
- CultureInfo
An object that supplies culture-specific casing rules.
The lowercase equivalent of c, modified according to culture, or the unchanged value of c, if c is already lowercase or not alphabetic.
culture is null.
Examples
The following code example demonstrates ToLower.
using namespace System;
using namespace System::Globalization;
// for CultureInfo
void main()
{
Console::WriteLine( Char::ToLower( 'A' ) ); // Output: "a"
}
using System;
using System.Globalization;
public class ToLowerSample {
public static void Main() {
Console.WriteLine(Char.ToLower('A')); // Output: "a"
}
}
imports System
Module ToLowerSample
Sub Main()
Console.WriteLine(Char.ToLower("A"c)) ' Output: "a"
End Sub
End Module
Remarks
Use String.ToLower to convert a string to lowercase.
ToLower(Char)
Converts the value of a Unicode character to its lowercase equivalent.
public static char ToLower (char c);
- c
- Char
The Unicode character to convert.
The lowercase equivalent of c, or the unchanged value of c, if c is already lowercase or not alphabetic.
Examples
The following example demonstrates ToLower.
using namespace System;
using namespace System::Globalization;
// for CultureInfo
void main()
{
Console::WriteLine( Char::ToLower( 'A' ) ); // Output: "a"
}
using System;
using System.Globalization;
public class ToLowerSample {
public static void Main() {
Console.WriteLine(Char.ToLower('A')); // Output: "a"
}
}
imports System
Module ToLowerSample
Sub Main()
Console.WriteLine(Char.ToLower("A"c)) ' Output: "a"
End Sub
End Module
Remarks
Casing rules are obtained from the current culture.
Use String.ToLower to convert a string to lowercase.