© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
9 replies
Elio

✅ EqualityComparer

Hello, anyone know of this code work ?
-->
EqualityComparer<ICollection<myclass>> .Default.Equals(myclassS, x.myclassS)
EqualityComparer<ICollection<myclass>> .Default.Equals(myclassS, x.myclassS)

cause i'm wondering if this will trigger the equals override inside myclass to compare each element or if it will do an equal on the collection to look if they have the same hashcode or something like that
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Override ConcurrentDictionary EqualityComparer<TValue>?
C#CC# / help
3y ago
❔ How to remove extra fields during reflection?
C#CC# / help
3y ago
Dictionary<> Keys do not get fetched properly
C#CC# / help
16mo ago
❔ Does this method cause boxing of value types?
C#CC# / help
4y ago