diff --git a/src/Umbraco.Core/ObjectResolution/WeightAttribute.cs b/src/Umbraco.Core/ObjectResolution/WeightAttribute.cs new file mode 100644 index 0000000000..f360443c55 --- /dev/null +++ b/src/Umbraco.Core/ObjectResolution/WeightAttribute.cs @@ -0,0 +1,25 @@ +using System; + +namespace Umbraco.Core.ObjectResolution +{ + /// + /// Indicates the relative weight of a resolved object type. + /// + [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)] + public class WeightAttribute : Attribute + { + /// + /// Initializes a new instance of the class with a weight. + /// + /// The object type weight. + public WeightAttribute(int weight) + { + Weight = weight; + } + + /// + /// Gets or sets the weight of the object type. + /// + public int Weight { get; private set; } + } +} \ No newline at end of file