Export (0) Print
Expand All

Char.ToLower Method

Converts the value of a Unicode character to its lowercase equivalent.

Overload List

Converts the value of a Unicode character to its lowercase equivalent.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function ToLower(Char) As Char
[C#] public static char ToLower(char);
[C++] public: static __wchar_t ToLower(__wchar_t);
[JScript] public static function ToLower(Char) : Char;

Converts the value of a specified Unicode character to its lowercase equivalent using specified culture-specific formatting information.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function ToLower(Char, CultureInfo) As Char
[C#] public static char ToLower(char, CultureInfo);
[C++] public: static __wchar_t ToLower(__wchar_t, CultureInfo*);
[JScript] public static function ToLower(Char, CultureInfo) : Char;

Example

[Visual Basic, C#, C++] The following sample demonstrates ToLower.

[Visual Basic, C#, C++] Note   This example shows how to use one of the overloaded versions of ToLower. For other examples that might be available, see the individual overload topics.
[Visual Basic] 
imports System

Module ToLowerSample

    Sub Main()
        Console.WriteLine(Char.ToLower("A"c))               ' Output: "a"
    End Sub

End Module

[C#] 
using System;
using System.Globalization;  // for CultureInfo

public class ToLowerSample {
    public static void Main() {
        Console.WriteLine(Char.ToLower('A'));                // Output: "a"
    }
}

[C++] 
#using <mscorlib.dll>
using namespace System;
using namespace System::Globalization;  // for CultureInfo

void main() {
   Console::WriteLine(Char::ToLower('A'));   // Output: "a"
}

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

Char Structure | Char Members | System Namespace

Show:
© 2014 Microsoft