CollectionsExtensionsOrderByDependenciesTSource, TKey(IEnumerableTSource, FuncTSource, TKey, FuncTSource, IEnumerableTKey, IEqualityComparerTKey, FuncTSource, IEnumerableTKey, TSource) - метод
Пространство имён: Tessa.Platform.CollectionsСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public static IEnumerable<TSource> OrderByDependencies<TSource, TKey>(
this IEnumerable<TSource> source,
Func<TSource, TKey> keySelector,
Func<TSource, IEnumerable<TKey>> dependencySelector,
IEqualityComparer<TKey> keyComparer,
Func<TSource, IEnumerable<TKey>, TSource> surrogateSelector
)
<ExtensionAttribute>
Public Shared Function OrderByDependencies(Of TSource, TKey) (
source As IEnumerable(Of TSource),
keySelector As Func(Of TSource, TKey),
dependencySelector As Func(Of TSource, IEnumerable(Of TKey)),
keyComparer As IEqualityComparer(Of TKey),
surrogateSelector As Func(Of TSource, IEnumerable(Of TKey), TSource)
) As IEnumerable(Of TSource)
public:
[ExtensionAttribute]
generic<typename TSource, typename TKey>
static IEnumerable<TSource>^ OrderByDependencies(
IEnumerable<TSource>^ source,
Func<TSource, TKey>^ keySelector,
Func<TSource, IEnumerable<TKey>^>^ dependencySelector,
IEqualityComparer<TKey>^ keyComparer,
Func<TSource, IEnumerable<TKey>^, TSource>^ surrogateSelector
)
[<ExtensionAttribute>]
static member OrderByDependencies :
source : IEnumerable<'TSource> *
keySelector : Func<'TSource, 'TKey> *
dependencySelector : Func<'TSource, IEnumerable<'TKey>> *
keyComparer : IEqualityComparer<'TKey> *
surrogateSelector : Func<'TSource, IEnumerable<'TKey>, 'TSource> -> IEnumerable<'TSource>
- source IEnumerableTSource
-
- keySelector FuncTSource, TKey
-
- dependencySelector FuncTSource, IEnumerableTKey
-
- keyComparer IEqualityComparerTKey
-
- surrogateSelector FuncTSource, IEnumerableTKey, TSource
-
- TSource
- TKey
IEnumerableTSourceВ Visual Basic и C# этот метод можно вызывать как метод экземпляра для любого объекта типа
IEnumerableTSource. При вызове метода для экземпляра следует опускать первый параметр. Дополнительные сведения см. в разделе
Методы расширения (Visual Basic) или
Методы расширения (Руководство по программированию в C#).