In C#, is there a IEqualityComparer<IEnumerable>
that uses the SequenceEqual
method to determine equality?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
There is no such comparer in .NET Framework, but you can create one:
In the above code, I iterate over all items of the collection in the
GetHashCode
. I don't know if it's the wisest solution but this what is done in the internalHashSetEqualityComparer
.