FileBackedDictionaryTKey, TValue, TKeyElem, TValueElem(String, IEqualityComparerTKey) Constructor

Creates a new instance of the FileBackedDictionaryTKey, TValue class.

Definition

Namespace: Gemstone.IO.Collections
Assembly: Gemstone.IO (in Gemstone.IO.dll) Version: 1.0.175 -- Release Build+36b5b04f9f64c24655fcc7ae3dab027e2909bbc2
public FileBackedDictionary(
	string filePath,
	IEqualityComparer<TKey>? keyComparer
)

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

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