Top "Iequalitycomparer" questions

IEqualityComparer is a .NET framework interface that allows the implementation of customized equality comparison for collections.

C# 3.0: Need to return duplicates from a List<>

I have a List<> of objects in C# and I need a way to return those objects that …

c# linq lambda iequalitycomparer
writing a custom comparer for linq groupby

Again this sample is a very simplified version of my actual problem involving a custom comparer for linq grouping. What …

linq iequalitycomparer
HashSet constructor with custom IEqualityCompare defined by lambda?

Currently the HashSet<T> constructor that allows you to define your equality comparison yourself is the HashSet<…

c# .net lambda iequalitycomparer
How do you implement a IEqualityComparer<T> in VB.NET?

I have the following function that loops through a directory and checks for a specified folder and file: Private Function …

vb.net iequalitycomparer directoryinfo
Custom equality comparer for Type in dictionary

Since Int32 is a Object, I want this to print "True" Dictionary<Type, string> dict = new Dictionary<…

c# dictionary iequalitycomparer