TYPE
IEqualityComparer<T>
Provides Equals and GetHashCode; equal values must produce equal hashes.
Formal Syntax & Structure
csharp syntaxcsharp
IEqualityComparer<T>Working Example
Example Snippetcsharp
using System;using System.Collections.Generic;IEqualityComparer<string> comparer = StringComparer.OrdinalIgnoreCase;Console.WriteLine(comparer.Equals("A", "a"));