Copies the elements from the specified dictionary to a new list with the same initial capacity as the number of elements copied and with the specified comparer.

Namespace: Spire.Doc.Collections
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 9.6.1.0 (9.6.1.3020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public TypedSortedListEx(
	IDictionary<TKey, TValue> d,
	IComparer<TKey> comparer
)
Public Sub New ( 
	d As IDictionary(Of TKey, TValue),
	comparer As IComparer(Of TKey)
)
public:
TypedSortedListEx(
	IDictionary<TKey, TValue>^ d, 
	IComparer<TKey>^ comparer
)
new : 
        d : IDictionary<'TKey, 'TValue> * 
        comparer : IComparer<'TKey> -> TypedSortedListEx

Parameters

d
IDictionary<(Of <(<'TKey, TValue>)>)>
The IDictionary to copy.
comparer
IComparer<(Of <(<'TKey>)>)>
The IComparer to use to determine whether two keys are equal.

Exceptions

ExceptionCondition
System..::..ArgumentNullException When argument d is null.

See Also