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 (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'Declaration
Public Sub Sort ( _
    index As Integer, _
    count As Integer, _
    comparer As IComparer(Of T) _
)
'Usage
Dim instance As LinkedElementCollection 
Dim index As Integer 
Dim count As Integer 
Dim comparer As IComparer(Of T)

instance.Sort(index, count, comparer)
public void Sort(
    int index,
    int count,
    IComparer<T> comparer
)
public:
void Sort(
    int index, 
    int count, 
    IComparer<T>^ comparer
)
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 nulla null reference (Nothing in Visual Basic) to use the default comparer System.Collections.Generic.Comparer.Default.

.NET Framework Security

See Also

Reference

LinkedElementCollection<T> Class

LinkedElementCollection<T> Members

Sort Overload

Microsoft.VisualStudio.Modeling Namespace