using System; namespace Umbraco.Core.ObjectResolution { /// /// Indicates the relative weight of a resolved object type. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] internal class WeightedPluginAttribute : Attribute { /// /// Initializes a new instance of the class with a weight. /// /// The object type weight. public WeightedPluginAttribute(int weight) { Weight = weight; } /// /// Gets or sets the weight of the object type. /// public int Weight { get; private set; } } }