Collapse All Expand All

C#

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

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
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: 3.6.1.0 (3.6.1.0)

# 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

Exception | Condition
--- | ---
System..::.ArgumentNullException | d is null.
System..::.InvalidCastException | comparer is null, and one or more elements in d do not implement the IComparable interface.

# See Also

SortedDictionary Class
SortedDictionary Overload
Tangosol.Util.Collections Namespace