Click or drag to resize

FileBackedDictionaryTKey, TValue(IDictionaryTKey, TValue, IEqualityComparerTKey) Constructor

Creates a new instance of the FileBackedDictionaryTKey, TValue class.

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.230-beta+03417d7b5cff037b24e882d7adef82d359b34964
Syntax
public FileBackedDictionary(
	IDictionary<TKey, TValue> dictionary,
	IEqualityComparer<TKey> keyComparer
)
View Source

Parameters

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
ExceptionCondition
ArgumentNullExceptiondictionary is null.
InvalidOperationExceptionEither TKey or TValue cannot be serialized.
See Also