| LinqExtensionsOrderByWithDirectionTSource, TKey Method |
Sorts the elements of a sequence according to the key
with the provided order
Namespace:
Omada.OE.Model.Extensions
Assembly:
Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntaxpublic static IOrderedEnumerable<TSource> OrderByWithDirection<TSource, TKey>(
this IEnumerable<TSource> source,
Func<TSource, TKey> keySelector,
bool descending
)
Parameters
- source
- Type: System.Collections.GenericIEnumerableTSource
- keySelector
- Type: SystemFuncTSource, TKey
- descending
- Type: SystemBoolean
Type Parameters
- TSource
- TKey
Return Value
Type:
IOrderedEnumerableTSourceUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also