Search Results for

    Show / Hide Table of Contents

    Class ExtensionSorter

    Utility class that sorts sortable extensions.

    Inheritance
    System.Object
    ExtensionSorter
    Namespace: Sdl.Core.PluginFramework.Util
    Assembly: Sdl.Core.PluginFramework.dll
    Syntax
    public static class ExtensionSorter : Object
    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
    System.Collections.Generic.IEnumerable<IExtension> extensions

    The extensions to sort.

    Returns
    Type Description
    System.Collections.Generic.IList<IExtension>

    A sorted list of extensions.

    Exceptions
    Type Condition
    System.ArgumentException

    Thrown if one of the extensions specified does not target a sortable extenion point.

    See Also

    SortableExtensionAttribute

    On this page

    • Methods
      • Sort(IEnumerable<IExtension>)
    • See Also
    Back to top Generated by DocFX