|
FileBackedHashSetT(IEnumerableT) Constructor
|
Namespace: GSF.CollectionsAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.220-beta+a56b2444ff27b37e053039e60f062b99378309bd
Syntax public:
FileBackedHashSet(
IEnumerable<T>^ enumerable
)
new :
enumerable : IEnumerable<'T> -> FileBackedHashSet
GSF.Collections.FileBackedHashSet = function(enumerable);
View SourceParameters
- enumerable IEnumerableT
- The enumerable whose elements are copied to this hash set.
Exceptions Remarks
This constructor uses the default equality comparer for file backed lookup tables,
which is not the same as the default equality comparer for
T
objects. This is because the default implementation of
GetHashCode
does not provide guarantees about consistency across platforms, or even implementations
of the CLR. Instead, the default equality comparer uses a byte-for-byte comparison to
determine equality between keys and a CRC-32 for its hash code implementation. This
means the performance of the hashing function is dependent on the performance of the
serialization function.
See Also