Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
SortedDictionary Constructor (IComparer, Int32)
SortedDictionary Class See Also

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

Exception | Condition
--- | ---
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

SortedDictionary Class
SortedDictionary Overload
Tangosol.Util.Collections Namespace