Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01

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: 3.6.1.0 (3.6.1.0)

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..::.ArgumentOutOfRangeException capacity is less than zero.
System..::.OutOfMemoryException There is not enough available memory to create a SortedDictionary object with the specified capacity.

See Also