Welcome to mirror list, hosted at ThFree Co, Russian Federation.

IOrderable.cs « BaseUtility « Def « Core « src - github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ecf91f36c2530c7977fff8e6c6c086033cc42b08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// ****************************************************************************
// Copyright (C) Microsoft Corporation.  All Rights Reserved.
// ****************************************************************************
using System.ComponentModel;
using System.Collections.Generic;

namespace Microsoft.VisualStudio.Utilities
{
    /// <summary>
    /// Associated with an orderable part. 
    /// </summary>
    /// <remarks>This interface is helpful when importing orderable parts.</remarks> 
    public interface IOrderable
    {
        /// <summary>
        /// Uniquely identifies a part with respect to parts of the same type.
        /// </summary>
        string Name { get; }

        /// <summary>
        /// The parts before which this part should appear in the list.
        /// </summary>
        [DefaultValue(null)]
        IEnumerable<string> Before { get; }

        /// <summary>
        /// The parts after which this part should appear in the list.
        /// </summary>
        [DefaultValue(null)]
        IEnumerable<string> After { get; }
    }
}