To convert Upper case to Lower case, use the ToLower() method in C#.
Let’s say your string is −
str = "TIM";
To convert the above uppercase string in lowercase, use the ToLower() method −
Console.WriteLine("Converted to LowerCase : {0}", str.ToLower());The following is the code in C# to convert character case −
Example
using System;
using System.Collections.Generic;
using System.Text;
namespace Demo {
class MyApplication {
static void Main(string[] args) {
string str;
str = "TIM";
Console.WriteLine("UpperCase : {0}", str);
// convert to lowercase
Console.WriteLine("Converted to LowerCase : {0}", str.ToLower());
Console.ReadLine();
}
}
}