LinkedElementCollection<T>.Sort 方法 (Int32, Int32, IComparer<T>)

对元素链接集合中元素的范围进行排序。

命名空间:  Microsoft.VisualStudio.Modeling
程序集:  Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

语法

声明
Public Sub Sort ( _
    index As Integer, _
    count As Integer, _
    comparer As IComparer(Of T) _
)
public void Sort(
    int index,
    int count,
    IComparer<T> comparer
)

参数

  • index
    类型:System.Int32
    要排序的范围的从零开始的起始索引。
  • count
    类型:System.Int32
    要排序的范围的长度。
  • comparer
    类型:System.Collections.Generic.IComparer<T>
    当比较元素时使用的 “System.Collections.Generic.IComparer” 实现;或者 null 时,使用默认比较器 “System.Collections.Generic.Comparer.Default”。

.NET Framework 安全性

请参阅

参考

LinkedElementCollection<T> 类

Sort 重载

Microsoft.VisualStudio.Modeling 命名空间