Class ExtensionSorter
Utility class that sorts sortable extensions.
Inherited Members
Namespace: SdlSdl.CorePluginFrameworkUtil
Assembly: Sdl.Core.PluginFramework.dll
Syntax
public static class ExtensionSorter
Remarks
This class only supports sortable extensions, i.e. extensions marked with an extension attribute that extends SortableExtensionAttribute.
Methods
Sort(IEnumerable<IExtension>)
Sorts the specified extensions according to the according to the InsertBefore and InsertAfter properties.
Declaration
public static IList<IExtension> Sort(IEnumerable<IExtension> extensions)
Parameters
Type | Name | Description |
---|---|---|
IEnumerableIExtension | extensions | The extensions to sort. |
Returns
Type | Description |
---|---|
IListIExtension | A sorted list of extensions. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if one of the extensions specified does not target a sortable extenion point. |