IEqualityComparer Interface

Today I will explain an important collection interface in C# known as the IEqualityComparer Interface. In fact, in C#, we have both the Generic as well as non-generic interface. However, the non-generic interface is not type-safe. What’s more, the generic interface allows us to provide our own definition for equality comparison for the specific user-defined …