IEqualityComparer<T>
is an interface for an object that performs the comparison on two objects of the type T
.
IEquatable<T>
is for an object of type T
so that it can compare itself to another of the same type.
More Related Contents:
- Distinct not working with LINQ to Objects
- What’s the difference between IEquatable and just overriding Object.Equals()?
- Is there a complete IEquatable implementation reference?
- C# difference between == and Equals()
- What’s the best strategy for Equals and GetHashCode?
- IEqualityComparer that uses ReferenceEquals
- IEqualityComparer for SequenceEqual
- What’s the role of GetHashCode in the IEqualityComparer in .NET?
- Overriding GetHashCode for mutable objects?
- Storing WPF Image Resources
- How do I specify the exit code of a console application in .NET?
- How do I use WebRequest to access an SSL encrypted site using HTTPS?
- Memory allocation: Stack vs Heap?
- How to unload an assembly from the primary AppDomain?
- Two-way / bidirectional Dictionary in C#?
- Weak event handler model for use with lambdas
- Checking file/folder access permission
- Executing query with parameters
- Parse C# string to DateTime
- ConfigureAwait pushes the continuation to a pool thread
- How to read a .NET Guid into a Java UUID
- Regex replace multiple groups
- XmlTextReader vs. XDocument
- WinForms Layered Controls with Background images cause tearing while scrolling
- Is there a way of setting a property once only in C#
- Asynchronous iterator Task
- Automatically implemented property in struct can not be assigned
- How to create multiple directories from a single full path in C#?
- How do I reference a .NET Framework project in a .NET Core project?
- Creating a power set of a Sequence