Orderer.Order<TValue,TMetadata> 方法

定义

对所有可排序的项(即实现接口的项)进行排序 IOrderable

public:
generic <typename TValue, typename TMetadata>
 where TValue : class where TMetadata : Microsoft::VisualStudio::Utilities::IOrderable static System::Collections::Generic::IList<Lazy<TValue, TMetadata> ^> ^ Order(System::Collections::Generic::IEnumerable<Lazy<TValue, TMetadata> ^> ^ itemsToOrder);
public static System.Collections.Generic.IList<Lazy<TValue,TMetadata>> Order<TValue,TMetadata> (System.Collections.Generic.IEnumerable<Lazy<TValue,TMetadata>> itemsToOrder) where TValue : class where TMetadata : Microsoft.VisualStudio.Utilities.IOrderable;
static member Order : seq<Lazy<'Value, 'Metadata>> -> System.Collections.Generic.IList<Lazy<'Value, 'Metadata>> (requires 'Value : null and 'Metadata :> Microsoft.VisualStudio.Utilities.IOrderable)
Public Shared Function Order(Of TValue As Class, TMetadata As Class) (itemsToOrder As IEnumerable(Of Lazy(Of TValue, TMetadata))) As IList(Of Lazy(Of TValue, TMetadata))

类型参数

TValue

值的类型。

TMetadata

元数据的类型。

参数

itemsToOrder
IEnumerable<Lazy<TValue,TMetadata>>

要排序的项的列表。

返回

IList<Lazy<TValue,TMetadata>>

已排序项的列表。

例外

itemsToOrder 为 null。

适用于