Search Results for

    Show / Hide Table of Contents

    Class ExtensionSorter

    Utility class that sorts sortable extensions.

    Inheritance
    object
    ExtensionSorter
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Sdl.Core.PluginFramework.Util
    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
    IEnumerable<IExtension> extensions

    The extensions to sort.

    Returns
    Type Description
    IList<IExtension>

    A sorted list of extensions.

    Exceptions
    Type Condition
    ArgumentException

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

    See Also

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