Click or drag to resize

SortedDictionary Constructor (IDictionary, IComparer)

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Initializes a new instance of the SortedDictionary class that contains elements copied from the specified dictionary, has the same initial capacity as the number of elements copied, and is sorted according to the specified IComparer interface.

Namespace:  Tangosol.Util.Collections
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public SortedDictionary(
	IDictionary d,
	IComparer comparer
)

Parameters

d
Type: System.CollectionsIDictionary
The IDictionary implementation to copy to a new SortedDictionary object.
comparer
Type: System.CollectionsIComparer
The IComparer implementation to use when comparing keys.-or- null to use the IComparable implementation of each key.
Exceptions
ExceptionCondition
ArgumentNullExceptiond is null.
InvalidCastExceptioncomparer is null, and one or more elements in d do not implement the IComparable interface.
See Also