System.String.ToLower Method

Returns a copy of this string converted to lowercase.

Syntax

public string ToLower ()

Returns

A string in lowercase.

Remarks

This method takes into account the casing rules of the current culture.

Note:

This method does not modify the value of the current instance. Instead, it returns a new string in which all characters in the current instance are converted to lowercase.

Security Considerations

The casing operation that results from calling the string.ToLower method takes the casing conventions of the current culture into account. If you need the lowercase or uppercase version of an operating system identifier, such as a file name, named pipe, or registry key, use the string.ToLowerInvariant or string.ToUpperInvariant methods. This produces the same result in every culture (unlike the string.ToLower method) and performs more efficiently.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0