Click or drag to resize

RepositoryExtensionsTopologicalSortT Method

Topological sort based on item dependencies.

Namespace:  Aloe.SystemFrameworks.Domain.Extensions
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public static IEnumerable<T> TopologicalSort<T>(
	this IEnumerable<T> nodes,
	Func<T, T, bool> isDependantOn
)

Parameters

nodes
Type: System.Collections.GenericIEnumerableT
The nodes.
isDependantOn
Type: SystemFuncT, T, Boolean
The item1 is dependent on item2.

Type Parameters

T

Return Value

Type: IEnumerableT

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. 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