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

对元素链接集合的元素。

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

语法

声明
Public Sub Sort ( _
    comparer As IComparer(Of T) _
)
public void Sort(
    IComparer<T> comparer
)

参数

  • comparer
    类型:System.Collections.Generic.IComparer<T>
    使用的 System.Collections.Generic.IComparer 实现,当比较元素时;或者 null 使用默认比较器 System.Collections.Generic.Comparer.Default。

.NET Framework 安全性

请参见

参考

LinkedElementCollection<T> 类

Sort 重载

Microsoft.VisualStudio.Modeling 命名空间