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 is empty, has the specified initial capacity, 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(
	IComparer comparer,
	int capacity
)

Parameters

comparer
Type: System.Collections..::..IComparer
The IComparer implementation to use when comparing keys.-or- null to use the IComparable implementation of each key.
capacity
Type: System..::..Int32
The initial number of elements this SortedDictionary object can contain.

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeExceptioncapacity is less than zero.
System..::..OutOfMemoryException There is not enough available memory to create a SortedDictionary object with the specified capacity.

See Also