|
FileBackedDictionaryTKey, TValue(String) Constructor
|
Namespace: GSF.CollectionsAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntaxpublic FileBackedDictionary(
string filePath
)
Public Sub New (
filePath As String
)
public:
FileBackedDictionary(
String^ filePath
)
new :
filePath : string -> FileBackedDictionaryGSF.Collections.FileBackedDictionary = function(filePath);
View SourceParameters
- filePath String
- The path to the file used to store the lookup table.
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
TKey
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