DependencyOrderingOrderByDependenciesT - метод

Sort a collection of elements "by dependency order". By passing a lambda which determines if an element is a dependency of another, this algorithm will return the collection of elements sorted so that a given element in the sequence doesn't depend on any other element further in the sequence.

Пространство имён:  Orchard.Utility
Сборка:  EleWise.ELMA.SDK.Web (в EleWise.ELMA.SDK.Web.dll) Версия: 1.0.0.0
Синтаксис
C#
public static IEnumerable<T> OrderByDependencies<T>(
	this IEnumerable<T> elements,
	Func<T, T, bool> hasDependency
)

Параметры

elements
Тип: IEnumerableT
hasDependency
Тип: FuncT, T, Boolean

Параметры типа

T

Возвращаемое значение

Тип: IEnumerableT

Примечание об использовании

В Visual Basic и C# этот метод можно вызывать как метод экземпляра для любого объекта типа IEnumerableT. При вызове метода для экземпляра следует опускать первый параметр. Дополнительные сведения см. в разделе Методы расширения (Visual Basic) или Методы расширения (Руководство по программированию в C#).
См. также