The ToLower() Method is used to convert all the characters/letters of the String in lower case.
public class MyApplication { public static void Main(string[] args) { var x = "HeLLo"; var y = x.ToLower(); System.Console.WriteLine("The String in lower case is : "+y); } }
In the above code, we have declared a String HeLLo, in which the letters H and two L's are in upper case.
var x = "HeLLo";
So, we have used the ToLower() Method to convert them to lower case and assign to a variable y.
var y = x.ToLower();