The C# ToLower function is utilized for transforming a string to its lowercase form, resulting in a new string with all characters in lowercase.
Signature
Example
public string ToLower()
public string ToLower(CultureInfo)
Parameter
First method does not take any parameter.
Return
It returns a string.
C# String ToLower Method Example.
Example
using System;
public class StringExample
{
public static void Main(string[] args)
{
string s1 = "Hello C#";
string s2 = s1.ToLower();
Console.WriteLine(s2);
}
}
Output:
Output
hello c#