Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-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: 12.2.1.4014 (12.2.1.4014)

Syntax

C#
public SortedDictionary(
	IDictionary d,
	IComparer comparer
)

Parameters

d
Type: System.Collections..::..IDictionary
The IDictionary implementation to copy to a new SortedDictionary object.
comparer
Type: System.Collections..::..IComparer
The IComparer implementation to use when comparing keys.-or- null to use the IComparable implementation of each key.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptiond is null.
System..::..InvalidCastExceptioncomparer is null, and one or more elements in d do not implement the IComparable interface.

See Also