Click or drag to resize

RankedMapTKey, TValue Constructor (ICollectionKeyValuePairTKey, TValue, IComparerTKey)

Initializes a new map instance that contains key/value pairs copied from the supplied map and sorted by the supplied comparer.

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
public RankedMap(
	ICollection<KeyValuePair<TKey, TValue>> map,
	IComparer<TKey> comparer
)

Parameters

map
Type: System.Collections.GenericICollectionKeyValuePairTKey, TValue
The map to be copied.
comparer
Type: System.Collections.GenericIComparerTKey
Comparison operator for keys.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen map is null.
InvalidOperationExceptionWhen comparer is null and no other comparer available.
See Also