﻿using System;

namespace ShellUtil.Comparable
{
    /// <summary>
    /// 
    /// </summary>
    [AttributeUsage(AttributeTargets.All, AllowMultiple=false, Inherited=true)]
    public sealed class PriorityAttribute : Attribute
    {
        /// <summary>
        /// The priority.
        /// </summary>
        public readonly int Priority;

        /// <summary>
        /// Initializes a new instance of the <see cref="PriorityAttribute"/> class.
        /// </summary>
        /// <param name="priority">The priority.</param>
        public PriorityAttribute(int priority)
        {
            this.Priority = priority;
        }
    }
}
