Interface ITopologicalSortable
Interface to be implemented by classes that need to support sorting topologically using the TopologicalSort<T> class.
Namespace: SdlSdl.CorePluginFrameworkUtil
Assembly: Sdl.Core.PluginFramework.dll
Syntax
public interface ITopologicalSortable
Properties
Id
Gets the id of the item.
Declaration
string Id { get; }
Property Value
Type | Description |
---|---|
string |
InsertAfter
Returns the id of the item after which this item needs to appear. Can be null.
Declaration
string InsertAfter { get; }
Property Value
Type | Description |
---|---|
string |
InsertBefore
Returns the id of the item before which this item needs to appear. Can be null.
Declaration
string InsertBefore { get; }
Property Value
Type | Description |
---|---|
string |
Priority
Returns the sorting priority of this item.
Declaration
int Priority { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
When two items specify the same criteria, for example InsertBefore=x, then the item with the highest priority, will be inserted right before x, followed by the item with the lower priority.