static void Main(string[] args) { string string1 = "A"; string string2 = "a"; if(string2.Equals(string1, StringComparison.OrdinalIgnoreCase)) //ingore case sensitive { Console.WriteLine("same"); } }