Orderer.Order<TValue,TMetadata> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The list of sorted items.
Exceptions
itemsToOrder
is null.