Files
Umbraco-CMS/src/Umbraco.Core/DependencyInjection/WeightAttribute.cs
2016-09-19 16:30:26 +02:00

25 lines
691 B
C#

using System;
namespace Umbraco.Core.DependencyInjection
{
/// <summary>
/// Specifies the weight of pretty much anything.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class WeightAttribute : Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="WeightAttribute"/> class with a weight.
/// </summary>
/// <param name="weight"></param>
public WeightAttribute(int weight)
{
Weight = weight;
}
/// <summary>
/// Gets the weight value.
/// </summary>
public int Weight { get; }
}
}