Orderer.Order<TValue, TMetadata> Method
Orders a list of items that are all orderable, that is, items that implement the IOrderable interface.
Namespace: Microsoft.VisualStudio.Utilities
Assembly: Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)
Syntax
‘선언
Public Shared Function Order(Of TValue As Class, TMetadata As IOrderable) ( _
itemsToOrder As IEnumerable(Of Lazy(Of TValue, TMetadata)) _
) As IList(Of Lazy(Of TValue, TMetadata))
public static IList<Lazy<TValue, TMetadata>> Order<TValue, TMetadata>(
IEnumerable<Lazy<TValue, TMetadata>> itemsToOrder
)
where TValue : class
where TMetadata : IOrderable
public:
generic<typename TValue, typename TMetadata>
where TValue : ref class
where TMetadata : IOrderable
static IList<Lazy<TValue, TMetadata>^>^ Order(
IEnumerable<Lazy<TValue, TMetadata>^>^ itemsToOrder
)
static member Order :
itemsToOrder:IEnumerable<Lazy<'TValue, 'TMetadata>> -> IList<Lazy<'TValue, 'TMetadata>> when 'TValue : not struct when 'TMetadata : IOrderable
JScript does not support generic types or methods.
Type Parameters
- TValue
The type of the value.
- TMetadata
The type of the metadata.
Parameters
- itemsToOrder
Type: System.Collections.Generic.IEnumerable<Lazy<TValue, TMetadata>>
The list of items to order.
Return Value
Type: System.Collections.Generic.IList<Lazy<TValue, TMetadata>>
The list of sorted items.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | itemsToOrder is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.