Creates an empty SortedList with the specified initial capacity and 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(
	IComparer<TKey> comparer,
	int capacity
)
Public Sub New ( 
	comparer As IComparer(Of TKey),
	capacity As Integer
)
public:
TypedSortedListEx(
	IComparer<TKey>^ comparer, 
	int capacity
)
new : 
        comparer : IComparer<'TKey> * 
        capacity : int -> TypedSortedListEx

Parameters

comparer
IComparer<(Of <(<'TKey>)>)>
Initial capacity.
capacity
Int32
The IComparer is used to determine whether two keys are equal.

See Also