PROPERTY
EqualityComparer<T>.Default
Provides the default equality comparer for T, using the type equality contract including IEquatable<T> when applicable. It is not necessarily reference identity or the same as an overloaded == operator.
Formal Syntax & Structure
csharp syntaxcsharp
EqualityComparer<T>.DefaultWorking Example
Example Snippetcsharp
using System;using System.Collections.Generic;using System.Linq;Console.WriteLine(EqualityComparer<string>.Default.Equals("A", "a")); // False