Class TopologicalExtensions
This contains Extension methods for Topological Sorting
Inheritance
System.Object
TopologicalExtensions
Namespace: Sdl.Core.PluginFramework.Util
Assembly: Sdl.Core.PluginFramework.dll
Syntax
public static class TopologicalExtensions : Object
Methods
TopologicalSort<T>(IEnumerable<T>)
Sort an Enumerable by the TopologicalSortable interface
Declaration
public static IEnumerable<T> TopologicalSort<T>(this IEnumerable<T> items)
where T : ITopologicalSortable
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<T> | items | ITopologicalSortable items |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T> | Sorted items |
Type Parameters
| Name | Description |
|---|---|
| T | ITopologicalSortable type |