Click or drag to resize

FileBackedDictionaryTKey, TValue(String, IEqualityComparerTKey) Constructor

Creates a new instance of the FileBackedDictionaryTKey, TValue class.

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.244-beta+c33f622c070b2c1078a06bcb41bdeb4c19d19a0b
Syntax
public FileBackedDictionary(
	string filePath,
	IEqualityComparer<TKey> keyComparer
)
View Source

Parameters

filePath  String
The path to the file used to store the lookup table.
keyComparer  IEqualityComparerTKey
The equality comparer used to compare keys in the dictionary.
Exceptions
ExceptionCondition
ArgumentExceptionfilePath is a zero-length string, contains only white space, or contains one or more invalid characters as defined by GetInvalidPathChars.
ArgumentNullExceptionfilePath is null.
InvalidOperationExceptionEither TKey or TValue cannot be serialized.
See Also