Delen via


LinkedElementCollection<T>.Sort Method (Int32, Int32, IComparer<T>)

Sorts a range of elements in the collection of element links.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

Syntax

'Declaration
Public Sub Sort ( _
    index As Integer, _
    count As Integer, _
    comparer As IComparer(Of T) _
)
public void Sort(
    int index,
    int count,
    IComparer<T> comparer
)
public:
void Sort(
    int index, 
    int count, 
    IComparer<T>^ comparer
)
member Sort : 
        index:int * 
        count:int * 
        comparer:IComparer<'T> -> unit
public function Sort(
    index : int, 
    count : int, 
    comparer : IComparer<T>
)

Parameters

  • index
    Type: System.Int32

    The zero-based starting index of the range to sort.

  • comparer
    Type: System.Collections.Generic.IComparer<T>

    The System.Collections.Generic.IComparer implementation to use when comparing elements; or null to use the default comparer System.Collections.Generic.Comparer.Default.

.NET Framework Security

See Also

Reference

LinkedElementCollection<T> Class

Sort Overload

Microsoft.VisualStudio.Modeling Namespace