Files
Umbraco-CMS/src/Umbraco.Core/Composing/WeightAttribute.cs

26 lines
682 B
C#
Raw Normal View History

2016-08-16 10:00:14 +02:00
using System;
2017-05-30 15:46:25 +02:00
namespace Umbraco.Core.Composing
2016-08-16 10:00:14 +02:00
{
/// <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; }
}
2017-07-20 11:21:28 +02:00
}