The C# ToLowerInvariant function is employed to transform a string to lowercase following the casing conventions of the invariant culture.
Signature
Example
public string ToLowerInvariant()
Parameter
It does not take any parameter.
Return
It returns a string.
C# String ToLowerInvariant Method Example
Example
using System;
public class StringExample
{
public static void Main(string[] args)
{
string s1 = "Hello C#";
string s2 = s1.ToLowerInvariant();
Console.WriteLine(s2);
}
}
Output:
Output
hello c#