Freigeben über


Orderer.Order<TValue,TMetadata> Method

Definition

Orders a list of items that are all orderable, that is, items that implement the IOrderable interface.

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))

Type Parameters

TValue

The type of the value.

TMetadata

The type of the metadata.

Parameters

itemsToOrder
IEnumerable<Lazy<TValue,TMetadata>>

The list of items to sort.

Returns

IList<Lazy<TValue,TMetadata>>

The list of sorted items.

Exceptions

itemsToOrder is null.

Applies to