FileBackedDictionaryTKey, TValue, TKeyElem, TValueElem(String, IDictionaryTKey, TValue, 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.165 -- Release Build+90e70fb13a8ed8f84b5b4dc8e65afc7c596c977f
public FileBackedDictionary(
	string filePath,
	IDictionary<TKey, TValue> dictionary,
	IEqualityComparer<TKey>? keyComparer
)

Parameters

filePath  String
The path to the file used to store the lookup table.
dictionary  IDictionaryTKey, TValue
The dictionary whose elements are copied to this dictionary.
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 or dictionary is null.
InvalidOperationExceptionEither TKey or TValue cannot be serialized.

See Also